Display fields only when editing

edited September 2014 in Modules
I am using form builders, how can i display some fields only when in editing mode.
currently i am using function form_fields($values = array(), $related = array())
which applies to both create and update mode

Comments

  • edited 8:27AM
    You can check for the $values['id']. The values array will be empty if it is new and has not been saved yet.
Sign In or Register to comment.