Jump to content

readOnly and invisible

form field

  • Please log in to reply
1 reply to this topic

#1 mavershim


    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 25 October 2012 - 12:29 AM


Would like to know what are the difference between readOnly, invisible and hidden on field_type. I was just curious when i change the field type to invisible or readonly they do not past the value to callback.


#2 David Leiva

David Leiva


  • Members
  • PipPip
  • 23 posts

Posted 26 October 2012 - 04:38 PM

Read only just make read onlye the field. It still visible.
Invisible, is a little bit weird. it just really add the field to the form but invisble mode. So, it is there. and you can receive it in a callback for example.
however Hidden is a usefull type, because allows you to set a default value in a idden field.. for example an id.

Remeber: the function change_field_type "The third parameter ($value) only works for the hidden, enum and set field and it is not a default value for all the other types."

hoping help you

Also tagged with one or more of these keywords: form, field

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users