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

  • BTB300
  • BTB300's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
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.080 seconds

Les générateurs de code je les connais presque tous pour les avoir essorés en long en large et en travers ... mais celui ci c'est vraiment un outil formidable de simplicité et d'efficacité !
Marc. (liubov - Forum)

Get Started