PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

What am I doing wrong with gform_field_input?

  1. Hello,

    I'm trying to change the input name value on a list field that has only one column. The current input name is input_10[]. I'm trying to use the following:

    function map_input($input, $field, $value, $lead_id, $form_id) {
     if($field["inputName"] == "input_10[]") {
      $input = '<input type="text" name="instruction[][description]" value="" tabindex="16" />';
     }
     return $input;
    }
    add_action("gform_field_input", "map_input", 10, 5);

    Am I doing something wrong?

    Posted 12 years ago on Thursday January 5, 2012 | Permalink
  2. Nevermind I scratched gravity forms and created my own form instead.

    Posted 12 years ago on Saturday January 14, 2012 | Permalink