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.055 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started