• Resolved draig

    (@draig)


    I have a volunteer form and I want to import the data into nationbuilder. Besides the usual personal info fields, we are asking 2 questions. One is how much time people have to give (radio buttons with 4 options). And the second is area of interest (checkboxes with 7 options)

    I want to give people a tag in Nationbuilder depending on which options they select for each of the two fields. It seems like the only way to do that is to create a feed for each possibility which means 4 separate feeds for the radio buttons and 7 separate feeds for the checkboxes. Seems kinda clumsy to have to make 11 feeds. So I’m wondering if there is another way I am not seeing.

    Thanks

    PS – at the moment I cannot make feeds at all, but I posted a separate thread about that issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dabernathy89

    (@dabernathy89)

    You should be able to get away with using one feed. For a radio or dropdown field, you can use a merge tag to insert the option the user chose. For checkboxes, if you choose the parent field (instead of an individual option), it will automatically give you a comma separated list.

    For any of those fields, if you want to pass through the value instead of the label, you can change the merge tag like this:

    {My Checkbox Field:1} —-> {My Checkbox Field:1:value}
    {My Radio Field:2} —-> {My Radio Field:2:value}

    See the GF documentation on merge tags: https://www.gravityhelp.com/documentation/article/merge-tags/

    So in your case, the ‘tags’ box in the NationBuilder feed would look something like this:

    {My Checkbox Field:1:value},{My Radio Field:2:value}

    Which could end up getting passed to NationBuilder like this:

    area-of-interest-1, area-of-interest-2,four-hours-to-give

    Plugin Author dabernathy89

    (@dabernathy89)

    (BTW you don’t have to insert the merge tags manually- there is a button to the right of the text area that will open up a dropdown for inserting them)

    Thread Starter draig

    (@draig)

    Thanks for the quick and informative reply. It is appreciated since I am new to Gravity Forms as well as this plugin. I just recently switched our organizations website from Formidable Pro (which I know well) specifically because of this integration with NationBuilder.

    That does indeed work, and well. I had not tried the “show values” option. Now I understand I can make the value the specific syntax of the desired NationBuilder tag. My needs are covered. Thanks again!

    Thread Starter draig

    (@draig)

    Actually, I have one more question. On a different form for sending comments to our City Council, we have a “Do you want to volunteer” radio button field with 2 options ‘yes’ and ‘no’. Is it possible to add a tag for ‘yes’ but not add a tag for ‘no’?

    I used 2 feeds and conditional logic, but now I wonder if there is a more elegant solution?

    Plugin Author dabernathy89

    (@dabernathy89)

    Glad you got it working!

    RE: your followup – I think that is a case where conditional logic makes sense. Another option could be to leave the ‘value’ for the radio field blank, but i’m not sure if that would have any unintended side effects.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Question about adding tags’ is closed to new replies.