field value
  • jplozano September 2011
    How can I set a field value?

    $fields['password']['value'] = '';
    This ain't working!

    Thx.
  • adminadmin September 2011
    It's because the values are getting set by Form_builders set_field_values method in the module controller and overwrites the values set in your form_fields method.

    How we get around it in FUEL is to create a new field call 'new_password' and then use model hooks (e.g. on_before_save()) to set it to the password value.
  • jplozano September 2011
    Ok, thanks!
  • jplozano February 20
    And how about some other field?
    Do I have to overwrite the field with other?
  • adminadmin February 20
    Could you provide an example of what you are asking to help me visualize? Thanks.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories