Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Hiding a Field on New Record 28 Feb 2013 05:24 #6871

Hey guys,

I'm creating a form that I would like certain fields to show on new - and certain fields to show on edit.

I guess the models/form/form.xml files are used for both new and edit. Same goes for views/form/tmp/form.php.

Any pointers?

Cheers
Just call me Chris :)

Please Log in or Create an account to join the conversation.

Re: Hiding a Field on New Record 28 Feb 2013 08:18 #6873

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
The simplest way would be to create 2 layouts; 1 for new and a 2nd for edit - simple!

Then, in your grid/collection, point the edit task to the 'edit' layout you've defined and the 'new' task to the 'new' form.

Hope it helps,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The following user(s) said Thank You: organicwebs

Please Log in or Create an account to join the conversation.

Re: Hiding a Field on New Record 05 Mar 2013 10:27 #6912

Just to point out as well
- if you put an edit task button in the grid of a collection / list view (so that each record has its own edit button)
- it will point to the Default View!
- make sure your default view is your edit layout
The following user(s) said Thank You: JoomGuy

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.129 seconds

  I am so so so looking forward to see how far this can go. Seems like the skies the limit at the moment.
Kevin (Forum) 

Get Started