Form Field Types (Text rendering as Text Area)

edited March 2014 in Bug Reports
I am trying to 'cast' a password field as a text field.$fields['password'] = array('type' => 'text');However, it is showing as a Text Area in the Form and not a Text Field.

Thoughts?

Comments

  • edited 10:08PM
    Since the field name is "password" there is a representative value that is overriding that. Add the parameter "ignore_representative" => TRUE:
    $fields['password'] = array('type' => 'text', 'ignore_representative' => TRUE);
    More on representatives can be found here:
    http://docs.getfuelcms.com/general/forms#representatives
  • edited 10:08PM
    Awesome. Thanks for the tip.

    I had also set a field 'URL' to be a text field (changed from a select), but it too rendered as a textarea. Is the reason the same?
  • edited 10:08PM
    Sounds like it.
Sign In or Register to comment.