[ Close ] Learn more about our custom WordPress development services at htmlBurger

Documentation

Documentation > Fields > Gravity Form

Gravity Form

Similar to select field, but automatically populated with all available gravity forms.

If the Gravity Forms plugin is not installed or not activated, an appropriate message will be displayed to the user.

Field::make("gravity_form", "crb_gravity_form", "Select a Form")

There is a crb_gravity_form_options filter which you can use to override the options that are passed to the select field. Example usage:

add_filter('crb_gravity_form_options', 'crb_my_gravity_form_options');
function crb_my_gravity_form_options($options) {
    //change the default "No Form" text
    $options[0] = 'Do not show any form';

    return $options;
}

Excited about Carbon Fields? Spread the word!