Skip Navigation

[Resolved] Need a Gravity Forms checkbox field where the options are created with a View

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Shane 5 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1333677

Tell us what you are trying to do?
Have a Gravity form where a field is "Which office(s) would you prefer?" I would like the options to be automatically created using a view called "locations" that would be updated when the view/posts are updated.

For example this page - hidden link - shows our office locations using a View listing Custom post type Office Locations. I would like to use that list as a set of options for the aforementioned form field to select an office.

#1333881

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jose,

Thank you for getting in touch.

View can provide data for plugins such as our Toolset forms plugin however, for gravity forms I dont know if this is possible.

You will need to consult with the gravity forms team to see if their plugin can handle data from a shortcode to populate their fields.

Thanks,
Shane

#1334015

Thanks! I think GF does indeed support using shortcodes in that way, but if that is the case, how would I go about doing that? Just use the standard views shortcode?

#1334021

OK I found this on the GF docs: hidden link

It seems I can use this in conjuction with Views, but I need a little guidance?

#1334025

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jose,

I would highly advise contacting the gravity form support for this one.

The Documentation that you sent is for PHP code, it doesn't show how to do it with a shortcode. Unless there is an area in the gravity forms that would allow for you to place the shortcode for dynamically populating the content ten it won't be possible.

We are not able to use views in the way that this document specifies.

This document performs a manual query to get your posts. You do have the option of using this method as well.

Thanks,
Shane