Questions tagged [plugin-gravity-forms]

Note: Support questions for this plugin is off topic. Please contact the plugin author or make use of its support route. Gravity Forms is a complete contact form solution for WordPress

92 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
3k views

Gravity Forms: Create fields programmatically

Is there any possiblity to create and manage gravity fields dynamically? I have form with ID 4 with couple fields. I want to add some fields of type checkbox with my own custom external data which can ...
Kamil's user avatar
  • 393
2 votes
1 answer
249 views

How to use IF Statement in WordPress?

I can't see how to correctly use the PHP if statement in my filter function below. This code works perfectly if all (3) of my $_POST inputs have values however it has a fatal error if any are empty. ...
Mike's user avatar
  • 21
1 vote
0 answers
4k views

Deferring Script wp-i18n causes a console error 'wp is not defined' - Gravityforms

I am deferring JS scripts in order to optimize page load times and SEO. My code to defer scripts is something like: add_filter( 'script_loader_tag', // Filters the HTML script tag of an enqueued ...
Meyer Auslander - Tst's user avatar
1 vote
0 answers
190 views

Shortcodes — Using add_action, add_filter in the shortcode

A client wants the following: User clicks on a specific button which takes them to a partner's site. If this is their first time clicking the link, they need to accept terms and conditions. If they'...
Tomasch's user avatar
  • 31
1 vote
1 answer
174 views

Capture User Email Address When Filling Out Form

We have a snippet of code that was provided by an optimization platform company we use that provides a real-time personalization to our website. The user will fill out a form (Gravity Forms) and then ...
Webman's user avatar
  • 63
1 vote
0 answers
1k views

Add PDF to ACF image field from file url

I am basically looping some fields from a gravity form entries. I using this function below to pass a file url into $filename and convert the file into a media library item, and then attaching that ...
joshmoto's user avatar
  • 447
1 vote
0 answers
114 views

How can I use a gravity form to send an e-card?

I have a Wordpress website that uses Woocommerce to sell printed greeting cards. We would like to enable our customers to be able to email people a digital version of a greeting card. I would like to ...
Dawn Summerall's user avatar
1 vote
0 answers
125 views

Why does using conditional logic in gravity forms break the form when placed using php

I have a form built using gravity forms... I am placing this form onto my page using PHP like this... // set our form ID 'Order Checkout' $form_id = 1; // enqueue the necessary styles and scripts ...
joshmoto's user avatar
  • 447
1 vote
0 answers
298 views

Adding a new field to the address field type in gravity forms

I'm following the documentation for adding new address types in Gravity Forms located here: https://docs.gravityforms.com/gform_address_types/ My goal is to add a new dropdown for County where State ...
o_O's user avatar
  • 279
1 vote
1 answer
170 views

Is there a way to display poll question results in Gravity forms before submitting the form?

When you have a poll on Gravity Forms, you can have a lot of questions or fields on the poll. But it's only until you hit the submit button that you'll see each field results. Is there a way that ...
danielsalare's user avatar
1 vote
0 answers
23 views

Populate email field is wp-signup.php

I am collecting email on the home page of my website using gravity form, and redirect user to the wp-signup.php page. How can i populate the email field of wp-signup.php with the user entry (email) on ...
Amit Jugran's user avatar
1 vote
1 answer
388 views

Gravity Forms: gform_wrapper stays hidden even though JS-scripts load without errors

I think this is worthy of a new question but could be wrong. So I'm using Gravity Forms v2.3.2 on a sub-site (I have a multi-site install but the plugin is NOT network activated) and am able to use ...
Omar's user avatar
  • 111
1 vote
0 answers
129 views

How to remove medium size class in gravity form for input tag?

I want to remove classes or replace class name with custom class names on a Gravity Forms email input field. I found this solution: add_filter( 'gform_field_css_class_3', 'custom_class', 10, 3 ); ...
pendaresh's user avatar
1 vote
0 answers
605 views

magnific popup + gravity form query string not passing

I am using magnific popup to display a gravity from in a popup. the form is on the page using this code: <div id="form" class="contact-popup mfp-hide">[gravityform id=1]</div> and my ...
Alex Vidal's user avatar
1 vote
0 answers
59 views

Migrating hosts, 500 errors and plugin issues

This a pretty broad question. I'm migrating from godaddy to a digitalocean droplet, for reasons. I created a backup and uploaded it to my droplet. I spun up the database, modified the wp-config.php ...
heliotrope's user avatar
1 vote
0 answers
768 views

Setting Cookies For Form Autofill

I'm trying to set cookies on a gravity form submission to collect and store information submitted on one form and fill in the information on another form as well as filling out the original form again ...
poto's user avatar
  • 23
1 vote
0 answers
649 views

Gravity Forms Perks - Nested Forms

Did Gravity Forms / Perks ever complete the Nested Forms perk by any chance? The list option in GF is only useful if all fields fit in a row and are text boxes - I ideally want to inc date fields and ...
Nick Gleed's user avatar
1 vote
0 answers
604 views

User meta not saving properly

I am using Gravity Forms and Advanced Custom Fields to add user meta on user Registration. I have a repeater field which I have managed to populate from form. I am using the values of the meta data ...
aido14's user avatar
  • 117
1 vote
0 answers
454 views

Gravity form built in Captcha

I am using gravity form built in CAPTCHA and it is not working with my theme. I have active wordpress default theme and CAPTCHA was working with default theme. So there is only conflict with my theme. ...
wpdd's user avatar
  • 313
1 vote
1 answer
849 views

Gravity forms - get shortcode attribute from post content

I have some posts and some of them contain [gravityform] shortcode with different attribute values. Say, a post Hello World contains a shortcode [gravityform id="1" title="false" description="false"]...
mukto90's user avatar
  • 1,234
1 vote
1 answer
460 views

Pass MD5 value to prepopulate field

this is my scenario: I have a gravity form A where i collect user data and users are automatically registered to my site (via gravity forms user registration plugin). Users then automatically login ...
Vainucleo's user avatar
1 vote
1 answer
162 views

How do I limit the number of forms a user can create in gravity forms?

I've been looking at Gravity Forms, and whilst it's a great plugin, it's missing some features. I really want the ability to limit how many forms can be created by a role: Administrator - Unlimited ...
David Howard's user avatar
0 votes
0 answers
19 views

Display months on a drop down calendar as TEXT instead of Numbers

Trying to display MONTHS as TEXT (Juanuary) instead of NUMBER (1) in a drop down calendar (gravity form) I tried this code but if you select a MONTH and then press a button into the FORM it will ...
StonebridgeGR's user avatar
0 votes
0 answers
17 views

Sending GravityForms to custom HTML

I am in need of some way to get a standard WordPress page/form to send some data to a custom page that has been created from raw html/JavaScript. The custom page works great within WordPress right now ...
Jeremy Long's user avatar
0 votes
1 answer
52 views

How to overwrite image if it already exists - Wordpress, Gravity form

How do I make the old file replaced when the user uploads a new one? Now the files are named a1.jpg, a2.jpg, a3.jpg. If the user uploads a.jpg, then I want to overwrite the a.jpg that already exists. ...
Masterior's user avatar
0 votes
0 answers
29 views

How to deactivate gravityforms WordPress plugin

I have a WordPress site which uses the gravityform plugin. Under certain circumstances I would like to deactivate the plugin programmatically and have it both be deactivated in the front end and show ...
Michael's user avatar
0 votes
1 answer
66 views

Gravity Forms and Gravity View Permissions

I have a pretty direct question. I am trying to figure out how to programmatically prevent users from being able to view other users' form submissions. Currently, using Gravity View, any logged in ...
MrChoop's user avatar
0 votes
0 answers
15 views

How to display gravity form data to woocommerce my account orders table?

I created a gravity form and integrated in to woocommerce, I need to display the data I input on gravity form to the order table in woocommerce my-account/orders/ page. You can see in line 14 that i ...
Johan Seals's user avatar
0 votes
0 answers
11 views

How to modify submit button on GravityForms

I am working on an environment built with Elementor on Wordpress. The website is using a lot of plugins and I have to delete some in order to optimize it. Among these, I deleted Ultimate Addons for ...
Drenhat's user avatar
0 votes
0 answers
54 views

SQL get last entry of a specific gravity form

I have a ROI calculator that needs to show the results as a graph. I am using the Visualizer Plugin, which allows for chart data to be populated by the db. I need a SQL query that will get the last ...
jloz312's user avatar
0 votes
2 answers
306 views

Transparent Overlay for Gravity Forms Ajax Spinner

I am using this code to center a custom ajax spinner for gravity forms submission. The spinner is centered based on the location of the gravity forms. I would like the spinner to be always centered ...
JoaMika's user avatar
  • 650
0 votes
0 answers
7 views

How to call post update addon after payment in payment gateway gravity form plugin?

I developed a payment gateway plugin for gravity form. I want to update post when addon update post is active. now I redirect customers to gateway and when they return to my callback function called ...
mohammad nabipour's user avatar
0 votes
0 answers
30 views

Gravity Forms data to SOAP Service says Could not connect to host

I want to send some selected fields of a gravity form to a soap service whenever a user/visitor submits form This is the soap markup the service provider gave me: Web Raw Details POST http://192.168.1....
Kobbe's user avatar
  • 1
0 votes
1 answer
113 views

Gravity Form Repeater File/Media Upload Not Working

Gravity form repeater currently not support file/media upload as mentioned in doc. I am wondering is there anyone who fixed that issue or any solution that can help me? I am getting following error:
Muhammad Ahmad's user avatar
0 votes
1 answer
96 views

Gravity Forms Multiple Dates Filled by 1st Date

I'm trying to figure out if there is a way to have multiple dates on a form be filled by the first date. I have 14 dates on the form. I want the user to pick the date on the first date and have the ...
Killian Consulting's user avatar
0 votes
0 answers
123 views

Gravity Forms - Custom Merge Tag Convert date_created to Local/WordPress Time?

I create a number of custom merge tags on my forms, one of which is "Date Submitted" which references the Gravity Form 'date_created' property as seen here https://docs.gravityforms.com/...
Blake Miller's user avatar
0 votes
0 answers
19 views

How to create multipage form and redirect to specific URL based on inpput?

I want to create multi page form, where first page will take information about user, second page will take information about product which he likes and third page user will subscribe either one time ...
German Bernal's user avatar
0 votes
1 answer
78 views

Remove an action created by a Gravity Forms add-on

I'm using Gravity Forms User Registration add-on and need to remove the action that include the activate page. In the add-on, the hook is called like this: add_action( 'wp', array( $this, '...
marcelo2605's user avatar
0 votes
0 answers
23 views

Updating user meta adds string count to value?

I am using Gravity Forms to update user meta. The user meta has to be serialized for another plugin, so I have to catch the value and convert it using the gform_pre_submission action before it gets ...
Michael's user avatar
  • 281
0 votes
2 answers
563 views

Gravity Forms: How to add PHP function to confirmation conditional shortcode?

In Gravity Forms, I have a confirmation set up with various conditional shortcodes. Example: [gravityforms action="conditional" merge_tag="{:3:value}" condition="contains"...
Michael's user avatar
  • 281
0 votes
0 answers
626 views

Trouble Accessing Gravity Forms API (GFAPI)

I'm having trouble figuring out where I should be registering my function in such a way that I can access the Gravity Forms API (GFAPI). At first glance, this may appear to be native to Gravity Forms, ...
sacredfaith's user avatar
0 votes
0 answers
810 views

How to capture hidden values with Gravity Forms

I will be using the following code from ActiveProspects and what it do is basically pass some hidden values (in this case basically a dynamic url) to the server along with the form fields which we ...
Sk Samim's user avatar
0 votes
1 answer
495 views

Doing Math with Gravity Forms List

While working on a client site utilizing Gravity Forms, I found myself wanting to use the aesthetic of the advanced list Gravity provides, but needed a bit more arithmetic firepower (read: any, ...
sacredfaith's user avatar
0 votes
0 answers
31 views

Confuse between forms and tables

I’m get confused between these notion and i don’t know wheres to start from for my project. I juste want to have the possiblities to get multiple evaluation to person (list of sportif) from the font-...
Sebastien MAH's user avatar
0 votes
2 answers
336 views

Wordpress - Gravityforms https:// is not a valid url

I have a Wordpress based website that uses gravity forms. I have the gravity form loading in a jquery model window. My issue is the form seems to work except for after submission the form just stays ...
Jayreis's user avatar
  • 101
0 votes
1 answer
98 views

edit_user_created_user hook - using to update Groups

I am integrating Gravity Forms, Gravity Forms User Registration Add On and Groups by ithinx. I have written the following function: add_action( 'edit_user_created_user', 'hl_add_group', 10, 1 ); ...
NYCjbd's user avatar
  • 13
0 votes
0 answers
243 views

How to use third-party SendGrid Email Validation API in Gravity Forms?

Please let me know how to use SendGrid Email Validation API in Gravity Forms, using gform_field_validation filter? Gravity Forms filter example: add_filter( 'gform_field_validation', function ( $...
Parth Solanki's user avatar
0 votes
0 answers
44 views

Add (populate) multiple dynamic fields trough a url query

So I'm using gravity forms to let users send a form where the can ask for a sample product. They do this by clicking an image from an image gallery. At this point, I'm able to create a URL to the form ...
Toasty's user avatar
  • 1
0 votes
1 answer
53 views

Am i doing something wrong by getting plugins from github repos?

I was trying to add paypal payment to my website, I'm using Gravirty form with stripe add-on but not paypal add-on. I happened to find a github repo for the (paypal addon). so I downloaded it then ...
shireef khatab's user avatar
0 votes
1 answer
655 views

Store GravityForm data in phpmyadmin (mysql)

I'm currently developing a small portal on Wordpress for a client where users have to submit forms (created with Gravity Forms). I'd like to be able to store the data from these forms, upon submission,...
kinganor's user avatar