Skip to main content

Get a Gravity Forms field's choices

Overview​

The "Get a Gravity Forms field's choices" action allows you to retrieve the choices for a field in a form. This action is useful when you need the choice values presented on a form field.

tip

If you need to update the choices for a field, you can use this action to retrieve the current choices and then use the "Update a Gravity Forms field's choices" action to update them.

Configuration​

Form ID​

When you select the "Get a Gravity Forms field's choices" action, you will be prompted to enter the ID of the form that contains the field you want to retrieve the choices for.

Field​

After you select the form, the list of fields with choices will be populated in the dropdown. You can select the field you want to retrieve the choices for.

Outputs​

This action returns an array of choice objects, each of which have the following fields:

  • Text
    • The text of the choice, this is what is presented to the user
  • Value
    • The value of the choice, this is what is stored in the database
  • IsSelected
    • Whether the choice is selected by default