GravityForms field
Vinobe93 opened this issue · 2 comments
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
Hi!
I can for sure add this when I get more time. I may not be able to verify the code output though, due to not having a Gravity forms License.
Hi!
I can for sure add this when I get more time.
I may not be able to verify the code output though, due to not having a Gravity forms License.
The license is for automatic updates, but the plugin works without.
So if you can get hold of the plugin code somehow 😉 You would be able to test it.
Or we could work something out in a private message if needed.
Thanks for your response.