I’d like to let the user choose which of the available forms they’d like to show on the page when creating it. For example perhaps one page requires a specific contact form, but another needs a different one.
I’ve had a look around, but I’ve gotten lost with just finding stuff about automatically populating fields using Gravity Forms.
I can obviously let them just put in the form ID, but I’d like them to be able to select instead.
if gravity forms are forms like others then each has a post ID and you would populate the choices with post id for value and post title for label. To display the field you would call do_shortcode() with the correct GF shortcode for the selected form.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users