Hello,
I am working on a form that uses a custom post type and custom fields from ACF. I am using the advanced post creation add-on and when trying to select which custom fields I want to map within the post creation, the drop down list isn’t updating with any new fields created or updates to ones I’ve already made. Any help is greatly appreciated.
All the best,
Chris
I don’t see an option to show or hide the form title and/or description. Is this possible either within the UI or with a hook/filter?
]]>Adding a new widget to a WordPress theme like Jobify by Astoundify requires some coding skills and knowledge of the theme’s structure.
Here are the steps we can follow to add a new widget to Jobify that allows users to submit ads:
first we create a child theme: It’s always recommended to create a child theme of Jobify instead of modifying the parent theme directly.
This way, our changes won’t be lost when the parent theme is updated.
Create a new widget: In our child theme’s directory, we create a new PHP file for our widget. We can use the WordPress Widget API to create the widget.
Here’s an example code snippet that we can use as a starting point:
class Jobify_User_Ad_Widget extends WP_Widget {
function __construct() {
parent::__construct(
'jobify_user_ad_widget',
__('User Ad Widget', 'jobify'),
array('description' => __('Allows users to submit ads', 'jobify'))
);
}
public function widget($args, $instance) {
// Widget output
}
public function form($instance) {
// Widget form
}
public function update($new_instance, $old_instance) {
// Update widget settings
}
}
function jobify_register_user_ad_widget() {
register_widget('Jobify_User_Ad_Widget');
}
add_action('widgets_init', 'jobify_register_user_ad_widget');
4. here we add the ad submission functionality: To allow users to submit ads, we can use a plugin like WPForms or Gravity Forms to create a form.
We can then add this form to our widget's widget() method. Here's an example code snippet:
public function widget($args, $instance) {
// Display the widget title
echo $args['before_widget'];
if (!empty($instance['title'])) {
echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title'];
}
// Display the ad submission form
echo do_shortcode('[gravityform id="1" title="false" description="false"]');
echo $args['after_widget'];
}
In this example, the Gravity Forms shortcode [gravityform id=”1″ title=”false” description=”false”] is used to display the ad submission form.
we can replace this with the shortcode for your own form.
Style the widget: Finally, we can style the widget to match Jobify’s design by adding CSS to your child theme’s style.css file.
With these steps, we should be able to add a new widget to Jobify that allows users to submit ads.
well – what do you say – can we go like so..?
look forward to hear from you
]]>Hello, when generating a type of Field, Gravity Form gives me a select field instead of creating a text area or input that sends the information when filled and does not select a form.
On the other hand, the dynamic information of elementor does not record the Gravity field type key and I could not enter it after and before, when what interests me is the printing of the data, not the field
]]>Hi! This is not really a support topic, but an idea for improvement. It would be great to have a search input inside the field, so that the user can find their form more easily. We are using almost 50 forms on our website (and planning on using more), so it’s getting harder to find the right form in the drop-down.
]]>I installed the plugin and I’ve added a custom field to my page. I tried to link the acf field to my beaver builder template. But when I try to select ‘Form’ as a field type, I don’t see ‘Form’ in the list of field types. What’s going wrong?
]]>Hi,
Thanks for your fine plugin!
I think I’ve found a bug though.
When using the Gform field in a Flexible Content field that has the ACF setting “Show in REST API” active it results in a fatal error (on the wp-json URL that is) :
Fatal error: Uncaught Error: Call to undefined method stdClass::format_value_for_rest() in /path/to/local/install/app/public/wp-content/plugins/advanced-custom-fields-pro/includes/rest-api/acf-rest-api-functions.php on line 69
Hope this helps.
Cheers, Tibor
]]>Hi Mark!
Thanks for reading these support tickets! I know this is a free forum so no expectation on a reply, but of course any response will be received with gratitude if you are able to take the time!
I made a quick-ish video (which you can watch at 2x’s the speed!) to explain this issue/feature request: Integration with Elementor Dynamic Tags (for Mark).
Basically, for whatever reason, the “Gravity Forms” Field Type doesn’t show up in the list of available fields when using Elementor’s Dynamic Tags. You’ll see in the video that I am able to achieve the end goal by switching the field from an ACF “Gravity Forms” Field Type to a “Text” Field Type and setting it in Elementor before switching back. Elementor ends up remembering my selection, but it might be cool if there were a way for the plugin to integrate directly with Elementor and show up on the list of available fields so as to save that extra step.
I bet it’s super complicated and wouldn’t even be worth looking into, but I wanted to submit this quick ticket just in case. Please know I take no personal offense if you have to write back and say, “Yes, so sorry, Caleb –?that is too much work for a free plugin!” ha – truly, no worries at all.
I did do a search in both Github and here on the Support Forum to see if anyone had listed this yet, so please forgive me if it is a duplicate ask! From what I could read about previous tickets about Elementor integration, it hasn’t been asked before.
Again, no rush to reply, and thank you again so much for even taking the time to read these notes and create a plugin like this in the first place! It’s been a blessing to use.
Thanks, again, Mark, and we’ll be in touch if/whenever you are able to write back! No worries if not! ??
]]>Hi,
I’m expecting to see the Gravity Form as a form that can be submitted, instead it returns into arrays on the frontend.
In an ACF form which is active on a post the user can select a Gravity Form from a dropdown. In the frontend I put [acf field=”gravity_form”].
Why is this returning into arrays instead of a working form?
With thanks,
Demian
Okay, so I’ve been trying to figure out the problem to this, and I believe it is down to this plugin.
On the link provided, when you submit a form, it does get added to the DB, but the form doesn’t update nor is there any redirection; it is literally like the form failed.
However, I have tested the form using the shortcode alone, and it does work.
It literally seems to be the confirmation part which fails (perhaps the AJAX response is the issue? I cannot see any error in the console).
]]>Hi,
I’m running into an issue where Javascript is added above a selected form with encoded characters. This causes an error and prevents forms from being submitted.
The Javascript added is this line
<script type="text/javascript">if(!gform){document.addEventListener("gform_main_scripts_loaded",function(){gform.scriptsLoaded=!0}),window.addEventListener("DOMContentLoaded",function(){gform.domLoaded=!0});var gform={domLoaded:!1,scriptsLoaded:!1,initializeOnLoaded:function(o){gform.domLoaded&&gform.scriptsLoaded?o():!gform.domLoaded&&gform.scriptsLoaded?window.addEventListener("DOMContentLoaded",o):document.addEventListener("gform_main_scripts_loaded",o)},hooks:{action:{},filter:{}},addAction:function(o,n,r,t){gform.addHook("action",o,n,r,t)},addFilter:function(o,n,r,t){gform.addHook("filter",o,n,r,t)},doAction:function(o){gform.doHook("action",o,arguments)},applyFilters:function(o){return gform.doHook("filter",o,arguments)},removeAction:function(o,n){gform.removeHook("action",o,n)},removeFilter:function(o,n,r){gform.removeHook("filter",o,n,r)},addHook:function(o,n,r,t,i){null==gform.hooks[o][n]&&(gform.hooks[o][n]=[]);var e=gform.hooks[o][n];null==i&&(i=n+"_"+e.length),null==t&&(t=10),gform.hooks[o][n].push({tag:i,callable:r,priority:t})},doHook:function(o,n,r){if(r=Array.prototype.slice.call(r,1),null!=gform.hooks[o][n]){var t,i=gform.hooks[o][n];i.sort(function(o,n){return o.priority-n.priority});for(var e=0;e<i.length;e++)"function"!=typeof(t=i[e].callable)&&(t=window[t]),"action"==o?t.apply(null,r):r[0]=t.apply(null,r)}if("filter"==o)return r[0]},removeHook:function(o,n,r,t){if(null!=gform.hooks[o][n])for(var i=gform.hooks[o][n],e=i.length-1;0<=e;e--)null!=t&&t!=i[e].tag||null!=r&&r!=i[e].priority||i.splice(e,1)}}}</script>
This script is only added when the form is selected with the GF relationship field. When embedding the form with the native GF Gutenberg block the form works without any issues and no Javascript is added above the form.
This happens for any selected form. It doesn’t matted if the output is the relationship field is an object of just the ID.
I can’t think of any reason why this happens. I’ve also reported this issue to GravityForms as I’m not sure if it’s caused by GF or this plugin.
Any help is much appreciated.
Kind regards,
Niels
I have a gravity form that captures an ACF datepicker field and I want to display that on a notification. In the notification the field displays as 20210607. How can I get it do display as June 7, 2021 instead?
]]>I’ve installed and activated the plugin a couple of times but I can’t get it to appear in my settings menu. I’m using WP 5.7.1, with only Gravity Forms, ACF and Custom Post Type UI installed with Twenty Twenty-one as the testing theme. Is there a URL I could input manually to get to the settings?
]]>Hi,
I have an issue with the Plugin as requests all forms on every page init which exhaust my hosting server, I just want to know why all of these queries in every page load and how to stop that?
Thanks
Hi there,
I am trying to integrate Advanced Custom Fields: Gravityforms Add-on with an Elementor for a landing page template I am creating.
Ideally I would like the end-user, in this case the content marketer, to be able to create a landing page, and select a form to display.
Within the Elementor themebuilder I don’t see how I can add in a key that would populate a Gravity form.
I made a quick video that hopefully better shows what I am trying to do
https://www.dropbox.com/s/1mtpn5ywl756avq/Gravity%20Forms%20Questions.mp4?dl=0
]]>Hi!
Recaptcha field is not showing so we get an error of Recaptcha not valid when submitting the form… any idea to resolve the problem??
Thanks!!
]]>When creating a custom Gravity Forms field (by extending the GF_Field
object), the function get_field_input
is never called in the frontend of the website. This means that the HTML content of the field isn’t part of the form, so the field cannot be used. (get_field_input
is correctly called in WordPress Admin, as expected.)
Hey guys. Since I am not working with WordPress anymore and I’ve switched to React for building websites at another company. I wanted to keep my plug-ins up-to-date but I am struggling to do so. Because of not having PHP, WordPress & several plugin licences but also because of motivation.
I’m therefore looking for (an)other person(s) who wants to improve, maintain & co-own the plugin. Please let me know if you’re interested in this. I would like to keep the code quality high, so I will still review code together with you ??
Hope to find someone so we can get this plugin up-to-date again!
]]>If ACF Gravity Form add-on is active, GF “slider” input is not visible on front-end.
I mean this type of field: https://www.screencast.com/t/hiQ9TUXaO
It’s done with Gravity Slider Field plugin:
https://www.ads-software.com/plugins/gravity-slider-fields/
If ACF Gravity Form add-on is deactivated, the slider input is displayed correctly.
Hi, is it possible to set a default form value?
Standard the ‘select’ field in ACF shows the option to add the following:
`
Default Value
Enter each default value on a new line
`
Use case: I want a default form with id ‘n’ to be used, unless a different form is chosen.
]]>There seems to be a conflict with this plugin and the the official Gravity Forms Coupons Add-On (https://www.gravityforms.com/add-ons/coupons/).
When both are enabled, the Gravity Forms Coupons Add-On does not properly render its field.
Advanced Custom Fields PRO v5.7.3
Advanced Custom Fields: Gravityforms Add-on v1.2.1
Gravity Forms v2.3.3
Gravity Forms Coupons Add-On v2.6.2
Line 138 of /resources/Field.php
|| (int)$field[‘value’] === (int)$formId
This code is making it so my first form, that has ID of #1, is always selected on the page load. Stripping this out makes it work. Mind fixing it? Any reason this is in there?
]]>Unfortunately, our site is on a private dev server and I can’t give you login access, but I did take a screenshot here: https://cl.ly/0s291f2j1W2t
When I activate your plugin, the primary nav menu bar disappears and it’s just a grey section of the screen. We’re using the Make theme from ThemeFoundry.
Not sure if the Developer Tools view can give you any indication of why this is happening.
]]>Hey i use this in the admin panel and i saw the options but in the view page i dont see it… what i miss ?
]]>Hello,
Gravity Forms 2.3 has a significant change to the database scheme. GF gives a notice with this plugin installed, that a plugin is referencing old database tables.
Can you update this plugin to make sure it has support for Gravity Forms 2.3?
Thanks in advance ??
]]>I have a question. Can you me explain how I can use gravitiy forms togehter with repeater field from acf (repater included a a dynamic number of offices with addresses fields – address, city, zipcode,…)
is this possible with your plugin?
]]>I have a layout row inside of a flexible content block that looks like this:
if( have_rows('content_area') ):
while ( have_rows('content_area') ) : the_row();
if( get_row_layout() == 'gravity_form' ):
$form = get_sub_field('form');
foreach($forms as $form) {
gravity_form($form, true, true, false, '', true, 1);
}
endif;
endwhile;
else :
// do nothing
endif;
When I pass an ID into the gravity_form function it outputs my form to the page.
However, I want to dynamically show the form that is selected from the admin panel and can’t quite figure out how to do this.
This is what my ACF set up looks like:
]]>Hey,
i tryed to integrate it in my frontend template but it doesnt work. always says “nothing to find”. I integrated it like this: `<div class=”text_teaser”>
<p><p><?php
$form = get_field(‘gravity’);
gravity_form($form, true, true, false, ”, true, 1);
?></p>
</div>
The Name of my layoutField is gravity. The Name of my subfield in ACF is “gravityform” both versions are not giving me back the selected id or the form. any ideas?
]]>Hey there,
I am working on a site for a client that uses the ACF Gravity Forms addon so that we can give users a front end submission experience. The catch is that we’re pulling the data into a progressive web app using the REST API.
The custom post type and all associated fields appear in the back end of WordPress after the front end form submission, but the ACF string in the response from the API is missing. If I update the page from the back end (without changing anything) the fields all become available.
I’ve tried to do some digging on my own, but there’s a bit of a time crunch on this one, so I figured I’d go to the source!
I have found a set of hidden fields that ACF has in the post editing page, and I suspect the issue lies somewhere within those fields…
Here’s the potentially useful bit of code:
<div id="acf-form-data" class="acf-hidden">
<input type="hidden" id="_acf_post_id" name="_acf_post_id" value="164" />
<input type="hidden" id="_acf_nonce" name="_acf_nonce" value="1e469c5f3e" />
<input type="hidden" id="_acf_validation" name="_acf_validation" value="1" />
<input type="hidden" id="_acf_ajax" name="_acf_ajax" value="1" />
<input type="hidden" id="_acf_changed" name="_acf_changed" value="0" />
</div>
]]>
Hi I found that when I try to use this plugin, the signature Addon plugin stop work.
Any idea about this conflict and how to solve it?
]]>