As of May 31, 2023, we have updated our Code of Conduct.

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
575 views

Adding multiple user roles dynamically [closed]

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 ...
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 ...
0 votes
1 answer
654 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,...
0 votes
1 answer
2k views

Manipulate the files uploaded via Gravity Forms before they are stored

I would like to make changes to files (for e.g. compress them into a zip) uploaded via Gravity Forms File upload field before they are uploaded to the webserver. Do you know of any hook or ...
0 votes
1 answer
2k views

Load gravity form via ajax using do_shortcode

I am reloading my form using ajax upon confirmation. This is working perfectly and I am parsing my form_id to the action function fine... // code to trigger stuff when forms have submitted $(...
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"]...
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 ...
0 votes
2 answers
196 views

Gravity Forms with Advanced Post Creation Add-On not updating ACF fields on custom taxonomy

I've tried everything I can think of and read about. I cannot seem to figure out why this doesn't work, let alone get it to work. I have a Custom post type called Talk. That custom post type has a ...
0 votes
1 answer
51 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. ...
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 ...
0 votes
1 answer
65 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 ...
0 votes
2 answers
296 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 ...
-1 votes
1 answer
1k views

Using Gravity Forms to upload media into library, then attach to post

I have a simple site with two Gravity Forms, both of which allow users to upload media. I'm looking for some simple code that: (a) inserts all uploaded media into the Media Library and not the ...
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 ...
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 ...
0 votes
0 answers
53 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 ...
1 vote
1 answer
480 views

Gravity form Load By Ajax Cannot Submit - Error 400 [closed]

I have an issue with Gravity forms. I successfully loaded Gravity Forms via ajax, but I got an error of 400 when I submit the form. I tried all solutions but still can't submit the forms. here is my ...
0 votes
1 answer
2k views

Foreach loop through Gravity Forms entries

So, I'm trying to iterate through a foreach loop of all the entries to a gravity forms form. I have it sort of working in a template, but I need to put it in a class (creating a calendar and need to ...
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 ...
1 vote
3 answers
706 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....
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....
0 votes
2 answers
924 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
1 answer
449 views

Update media library image shown in "attachment details" when using wp_insert_attachment to add item to the media library

I'm using the function wp_insert_attachment() to run on a form submission from GravityForms, take a file uploaded in the form, and add it to the WordPress Media Library. Code in functions.php below, ...
0 votes
1 answer
111 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:
0 votes
1 answer
94 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 ...
1 vote
1 answer
864 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 ...
0 votes
1 answer
68 views

GitHub plugins safe to use in my website?

I have some question about GitHub files, I hope it is a proper place to ask. I downloaded the gravity forms from https://github.com/wp-premium/gravityforms You may know that the plugin itself is sold ...
2 votes
1 answer
2k views

Update post using gravity forms 2019 solution

I am using native Gravity Forms to create posts. I am using Gravity Forms + Custom Post Types to handle creating custom post type posts. This works great. Its been about 3 years since i've had to ...
0 votes
0 answers
121 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/...
0 votes
1 answer
28 views

Which capabilities are available in Gravity Forms Salesforce plugin? [closed]

Which capabilities are there in Gravity Forms Salesforce plugin and what do they do?
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 ...
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, '...
0 votes
1 answer
346 views

Create a form with custom autocomplete address field and CSV import values

I want to create a contact form with 2 sections. The first section includes an address field. I have a repository of 100,000 addresses in CSV format. I need to import all addresses into the address ...
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 ...
4 votes
6 answers
7k views

Removing an admin page added by a 3rd party plugin. Gravity forms in this example

I'm trying to hide a help page from editors, added by the gravity forms plugin. I believe I've run into the same issue before with other plugins, so I'd like to know the correct way to do it for 3rd ...
0 votes
2 answers
506 views

Merge tags in multistep Gravity Form?

I want to use a multi-step form where the user enters their name in step one, then on step two the form will say "Hello, [name]" with the rest of the content and steps to follow. Any ideas? EDIT: I ...
0 votes
1 answer
891 views

What's the best way to echo out a filter variable?

I have a plugin filter that isn't working for me: add_filter( 'gform_notification_email_3', 'route_notification', 10, 2 ); function route_notification($email_to, $entry) { global $post; $...
0 votes
1 answer
19 views

Gravity Forms parameters return 1

I'm not sure what's causing gravity forms $entry and $form parameters to return 1. Here is my class. namespace GrvityFormsIntegration\DataTools; ini_set( 'error_log', WP_CONTENT_DIR . '/debug.log' ); ...
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 ...
6 votes
3 answers
3k views

Can an action callback prevent the parent from continuing execution?

I'm working on a plugin that interacts with Gravity Forms, and under certain conditions I want to prevent a form from being deleted. Here's the method in Gravity Forms that handles deleting a form: ...
1 vote
2 answers
342 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-...
0 votes
1 answer
116 views

Using $WPDB to create simple array to check against user entered value

I have a function that checks an entered value against a simple array of values to determine a match (or not). function validate_unit_type( $result, $value ) { $pattern = ["U" ,"SE&...
1 vote
0 answers
189 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
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 ...
0 votes
1 answer
533 views

Gravity Forms non-empty Total field values not submitted [closed]

I have created a gravity form and used several Total fields. Although I do not have any Product fields in my form, which the Total field is usually used to display the total of product prices, I used ...
-2 votes
1 answer
13k views

Restricting text field to numbers only in Gravity Forms [closed]

We're trying to restrict a text field to numbers only. Here's what we've tried Add text field Apply input mask (9999999999) The problem is that if someone does not fully complete the field, the ...
1 vote
1 answer
758 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
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 ...
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"...
0 votes
1 answer
550 views

Gravity Forms validate arrival and departure

I am working recently with GF and encounter the first problem: I have two datepicker; one is "arrival" and one is "departure". Now - of course - the "departure" can't be before "arrival". I've found ...

1
2 3 4 5 6