Text Size

Members login

Recommend Print

How to hide a field in the item edit form

  • Published by
    Georgios Papadakis
  • Last modified
    23 March 2012
  • Up to date
    Yes
  • Profile concerned
    Webdesigner, Developer
  • Concerns
    Plugins
  • Since Version
    1.5.6
  • Voting
    (1 vote)
  • Favourites
    Add to favourites [1 users]

Some times, you want to hide a field in frontend or backend item edit form or in both.

For example v1.5.6 has new parameter to FORCE a default value in a text field without ever needing to save any field value in the database.
The above can be useful if you want to add a field to all your (thousands) items without need to re-edit them.
This becomes really useful for triggering specific plugins inside the text field, that donot require per item value !!!

To define a field as being hidden in the edit form for e.g. field myfield:

Edit the file myfield.xml

To hide in backend, add parameter backend_hidden parameter, then (a) open the field and (b) set parameter to YES and (c) save

<param name="backend_hidden" default="1" type="radio" label="Hide in backend form" description="">
   <option value="0">FLEXI_NO>
   <option value="1">FLEXI_YES>
</param>

To hide in frontend, add parameter frontend_hidden parameter then (a) open the field and (b) set parameter to YES and (c) save

<param name="frontend_hidden" default="1" type="radio" label="Hide in backend form" description="">
   <option value="0">FLEXI_NO>
   <option value="1">FLEXI_YES>
</param>

To hide in both frontend and backend, set both parameters to YES

For J1.6/J1.7/J2.5 use  field instead of param

Community

ggppdk : Online 195 mins yaK2manD : Online 313 mins xhyman : Online 418 mins algardata : Online 1062 mins netcoupe : Online 27255 mins
Members Online: 5

Latest Comments

Latest Forum Posts

Posted by xhyman - 17/05/2012 18:00
Posted by yaK2manD - 17/05/2012 17:51
Posted by ggppdk - 17/05/2012 17:47
Posted by yaK2manD - 17/05/2012 17:41
Posted by algardata - 17/05/2012 16:45
Posted by yaK2manD - 17/05/2012 14:56