Skip to main content

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

91 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
  • 403
2 votes
1 answer
263 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
330 views

htaccess file prevents js scripts to run

In my WordPress website whenever the htaccess file is added to my public_html folder, I have so many errors in my js files. for example: Uncaught TypeError: gform.initializeOnLoaded is not a function ...
Arash Naderi's user avatar
1 vote
0 answers
6k 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
264 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
212 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
118 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
228 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
329 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
186 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
25 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
453 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
149 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
635 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
62 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
824 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
652 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
633 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
465 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
479 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
172 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
24 views

Trying to use value in form submission to check against external API

I'm trying to be as concise as possible. I'm building a form that takes a value ('address') which in turn would get posted to an external API. However, the real functionality comes with checking the '...
Cynthia Wong's user avatar
0 votes
0 answers
11 views

Function for Post Creation plugin for Gravity Forms

add_action('gform_after_submission_33', 'customize_submission_values_for_custom_post_type', 10, 2); function customize_submission_values_for_custom_post_type($entry, $form) { if ($form['id'] != ...
JoaMika's user avatar
  • 678
0 votes
2 answers
196 views

gravity forms api get_entries filter with created by id

This seems like an extremely simple question, but no matter how I slice it, I need to get data entered by manager and it's employees. Like Manager A added 5 locations, than I want to get those 5 ...
Dharmik's user avatar
  • 101
0 votes
0 answers
11 views

Is it posible to multiple entry value before submit Gravity forms?

Is there any way to do this case in Gravity forms: I use: Gravity Forms Gravity Forms Multi Pages I have three steps: Step 1: contain Option Field Step 2: also contains the option Field Step 3: ...
Baim Whello's user avatar
0 votes
0 answers
29 views

Pass form fields values from JS to PHP

I have a custom Gutenberg block plugin containing a custom HTML form. In my block I have a init.php file, where I'm enqueueing a Google Maps API library. All the frontend of the map is in jQuery. ...
TsvetkoKrastev's user avatar
0 votes
0 answers
70 views

Gravity Forms Pre Submission Check

I have only one field with an email address. If the field is empty, i don't want the form to be submitted at all, but just focus on the field. I have tried many variations but no matter what i do, the ...
JoaMika's user avatar
  • 678
0 votes
1 answer
207 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
58 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
  • 11
0 votes
1 answer
168 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
2 answers
765 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
  • 678
0 votes
0 answers
46 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
187 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
150 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
170 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
138 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
34 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
760 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
886 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
1 answer
645 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
418 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
120 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
2 answers
4k views

Gravity Forms - Prevent Multiple Form Entries Same User ID with Same Field Value

I have a form where users will submit a timecard.All entries to this form will be from users who are logged in (this part I have figured out).Users will enter their name, the amount of hours, and ...
Ben Shapiro's user avatar
0 votes
0 answers
285 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
54 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
58 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
780 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