WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Help With Gravity Forms Input Fields

Help With Gravity Forms Input Fields

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve made significant progress, but I still need a little help.

    My code as it stands is like so:

    $form_id = RGFormsModel::get_form_id('Domains');
    $form = GFFormsModel::get_form_meta($form_id);
    $field = GFFormsModel::get_field($form, 1);
    $leads = RGFormsModel::get_leads($form['id']);
    
    foreach($leads as $lead)
    {
        foreach($field as $field_id)
        {
            $value = rgar($lead, (string) $field_id);
            echo $value;
        }
    }

    This returns all entries for the field I want, however, I only want to return the entry that was submitted with that particular product. Help?

    Hey I was wondering if you figured this out? I used your code but two entries omitted instead of one. Good work so far!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help With Gravity Forms Input Fields’ is closed to new replies.
Skip to toolbar