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

98 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
2k 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 ...
2
votes
1answer
151 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. ...
1
vote
2answers
12 views

Restricting product quantity field to numbers only in Gravity Forms

How can i restrict the product quantity field to numbers only in Gravity Forms. And how can we add some increment arrow to the quantity field? like on this demo ? http://demos.gravitywiz.com/gp-...
1
vote
0answers
35 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'...
1
vote
1answer
69 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 ...
1
vote
0answers
256 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 ...
1
vote
0answers
70 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 ...
1
vote
0answers
29 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 ...
1
vote
1answer
84 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 ...
1
vote
0answers
20 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 ...
1
vote
1answer
214 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 ...
1
vote
0answers
91 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 ); ...
1
vote
0answers
396 views

Adding multiple user roles dynamically

We are using this plugin Members to give users multiple roles on our site, in this case we have "Vendor" and "Instructor". After submitting a Gravity form to become a 'Vendor' I have added this code ...
1
vote
1answer
379 views

Gravity Forms Submit form as another user

A client has requested that administrators be able to submit forms as other users. I've created an administrator form that has a dynamically populated drop-down of existing users filtered by roles. ...
1
vote
3answers
415 views

Keyword checking in Gravity Forms

In Gravity Forms I'd like to include a small keyword checker that is checking the user's message for "spammy" words and stops sending the entry to the admin. For this a hidden field changes it's value....
1
vote
0answers
482 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 ...
1
vote
1answer
565 views

gravity forms file upload field

I have created sample form using gravity forms which has some fields with file upload field. when form loads, it will check for existing data and if there it will populate it from database. Once ...
1
vote
0answers
58 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 ...
1
vote
0answers
601 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 ...
1
vote
0answers
627 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 ...
1
vote
0answers
478 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 ...
1
vote
0answers
422 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. ...
1
vote
1answer
696 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"]...
1
vote
1answer
390 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 ...
1
vote
1answer
127 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 ...
0
votes
0answers
9 views

Oauth question for gravity forms API in python

I'm trying to access the entries endpoint via python on a wordpress site. I am able to use Postman successfully, but when I try to use the requests library in python I run into some errors. First I ...
0
votes
0answers
14 views

How to force login before downloading file uploaded via gravity form?

I have followed this guide: Protecting Your Gravity Forms Upload Files And have therefore added the following to functions.php: add_filter( 'gform_require_login_pre_download', 'protect_gf_uploads', 10,...
0
votes
1answer
89 views

Using file_get_contents with Gravity Forms uploads folder to create images in the media library returning false

I am using Gravity forms which is uploading media and recreating the image into the relevant media folder over https. However, on my server, this doesn't appear to be reading the Gravity File folder, ...
0
votes
0answers
51 views

Set form field cookie and submit to checkout field - Not storing cookie

I'm having difficulty with the following code in that I'm adding it to code snippet plugin but I am unable to see the cookie being set in the developer tools after the form has been submitted. My ...
0
votes
0answers
10 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 ...
0
votes
0answers
21 views

Prevent block from being used in main editor, use only as inner block

I am currently using the allowed_block_type filter to control the available blocks in my theme, similar to the following example: function acf_allowed_blocks($allowed_blocks, $post) { // Register ...
0
votes
0answers
46 views

Gravity Forms for Woocommerce Add-on - GF Products amount not calculated in cart

Has anyone had experience with the Gravity Forms for Woocommerce Add-on? Specifically when generating GF Product fields. Here is what I am trying to accomplish: Using a Woocommerce product, I've added ...
0
votes
2answers
132 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"...
0
votes
0answers
107 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, ...
0
votes
0answers
15 views

Save and reuse product variations

Does anyone know of a plugin or a method that would allow me to create a set of variations with a quantity and set the price. From there save this variation set to be reused in one option, and the ...
0
votes
0answers
252 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 ...
0
votes
1answer
164 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, ...
0
votes
0answers
18 views

Gravity form Conditional Logic and jQuery

My Conditioned Gravity form is not showing up on this page: https://omegice.com/reseller-request/ It's on display=none because of the conditional logic but jquery won't do it's thing so it can be ...
0
votes
0answers
27 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-...
0
votes
2answers
97 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 ...
0
votes
1answer
18 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 ); ...
0
votes
1answer
149 views

Write gravity forms field values to server file before submission

I have a gravity form and I want to write the values of the fields to a server file, before submission, to capture people who don’t finish the form. I know there is a partial entries add on but I ...
0
votes
0answers
49 views

How can I get the total average quiz results of the Gravity Forms Quiz Addon?

I'm using the Quiz Addon for Gravity Forms, and I want to show the average total quiz results on the front end so that people taking the quiz can see how they stack up against everyone else. I was ...
0
votes
0answers
82 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 ( $...
0
votes
0answers
85 views

Gravity form is broken after javascript defer

I want to optimise my website javascript, but i'm also using Gravity form and if I deferred js the form doesn't show up, there will be an error in the console saying jQuery is not a function. I have ...
0
votes
0answers
13 views

load graviryforms scripts in dashboard admin menu

I want to use a gravityforms in my admin_menu; what I did is: add_action( 'admin_menu', 'teacher_form_menu' ); function teacher_form_menu() { add_submenu_page( 'hsaja_settings', ...
0
votes
0answers
21 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 ...
0
votes
1answer
197 views

Passing data from after_submission action to the confirmation filter in gravity forms?

I am creating a post within gform_after_submission action, which sets a post ID variable when the post is successfully created. https://docs.gravityforms.com/gform_after_submission/ add_action('...
0
votes
1answer
30 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 ...
0
votes
0answers
28 views

How do I output the Gravity Forms “embed url” of a post type post posted within a default post?

How do I output the Gravity Forms "embed url" of a post type posted within a default post, in php, within a shortcode? Does anyone know how to output these embed url merge tags on the frontend via ...