Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

GravityForms field #34

Description

@Vinobe93

Hi,

The agency I work for uses ACF and Gravity Forms for every WordPress website we build.
Therefor we also always install the https://nl-be.wordpress.org/plugins/acf-gravityforms-add-on/ plugin.
It adds an extra field type to ACF and enables the user to select a specific Gravity Form from a dropdown.

Could you please support this field type in your awesome tool?
Currently when clicking the button "copy code" an alert with link to this Github appears.

The field can return a "Form object" or the "Form ID".
In case of "Form ID" the output of your tool should be something like:

<?php if ( $formID = get_{sub}_field( {fieldname} ) ): ?>
	<?php
		gravity_form(
			$formID,	// $id_or_title,
			true, 		// $display_title = true,
			true,		// $display_description = true,
			false,		// $display_inactive = false,
			null,		// $field_values = null,
			false,		// $ajax = false,
			null,		// $tabindex,
			true		// $echo = true
		);
	?>
<?php endif; ?>

Reference URL for the gravity_form function: https://docs.gravityforms.com/adding-a-form-to-the-theme-file/

Kind regards
Vinobe93

Metadata

Metadata

Assignees

No one assigned

    Labels

    Output of field codeOutput of generated field code is not working or needs improvementenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions