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.

Can I get a label by field ID in a pre-submission filter?

  1. sydeburn
    Member

    I have a gform_pre_submission_filter. I am using it to do calculations among other things and I would like to save the label of one field as part of the value of another field. I know from your documentation that I can get the label of a field using the index of that field like this:

    $myText = $form['fields'][3]['label'];

    Is there a way to get the label using the field ID instead? My form will be a large multi-page from and getting the field ID will be easier than getting the index.

    Posted 11 years ago on Sunday January 13, 2013 | Permalink