How to make Primary Key (ID) editable in Fuel Forms.

In fuel form I need make PrimaryKey ID editable for create (and edit) form.
How could this be achieved; is there any Model parameter to be set?
I tried putting public $hidden_fields = []; but not working.
Alternately putting $fields['id']['type'] = 'text'; inside form_fields() model function also didn't work.

Comments

  • Try:

    $fields['__FORM_BUILDER__']['hidden'] = array();
    

    By default the value is is array('id').

Sign In or Register to comment.