Support

Account

Home Forums Backend Issues (wp-admin) Is it possible to use a field to choose a Gravity Form to show on the front end?

Solved

Is it possible to use a field to choose a Gravity Form to show on the front end?

  • 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.

  • https://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/

    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.