Support » Plugin: Forms: 3rd-Party Integration » GF Multiple Fields to Same 3rd-party Field

  • We are using GravityForms in one of our sites and I was wondering which should be the approach while mapping multiple fields to one 3rd-party field.

    For example: I have the fields “input_1,input_2,input_3,input_4 and input_5” which are dropdown select fields that, lets say, should be mapped to the 3rd-party field “location”.

    The work around that I’ve worked on is creating a “fields to 3rd-party Mapping” for each one and each one of those fields point to the “location” field.

    This works but not in the way I intended.

    If user picks a value for “input_3” the rest of the fields are automatically disabled and the data sent is blank but within the 3rd-party platform the received value shows up as “,,Value,,”.

    Is there anyway to work this out? Thanks a lot.

Viewing 1 replies (of 1 total)
  • Plugin Author zaus

    (@zaus)

    It might depend on how you’ve set up GF? I thought there was a way with conditional validation to omit some fields instead of just hiding them.

    But if not, you can hook to Forms3rdPartyIntegration_service_filter_post to alter the post submission array. I’d foreach the $post array and trim the values of spaces and commas. Might be worth an add-on plugin; if you make it I’ll be happy to link it from this one’s faq.

Viewing 1 replies (of 1 total)
  • The topic ‘GF Multiple Fields to Same 3rd-party Field’ is closed to new replies.