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

Filter by
Sorted by
Tagged with
0 votes
1 answer
954 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
2 answers
759 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 ...
0 votes
2 answers
756 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
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
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,...
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 $(...
0 votes
2 answers
183 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 ...
0 votes
1 answer
27 views

Issue with dynamically populating address fields with Gravity Forms

Using the gform_pre_render_ hook I receive the error when attempting to populate the default values: Fatal error : Uncaught Error: Attempt to assign property “defaultValue” on array in… This is the ...
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 '...
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'] != ...
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 ...
1 vote
0 answers
311 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 ...
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: ...
0 votes
1 answer
52 views

Gravityforms login form custom redirect if form not submitted

I am using Gravity forms with Wordpress. For project I want to add function that allow to redirect to different pages based on condition: loginin person didnt submit specific form. For example after ...
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. ...
0 votes
0 answers
69 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 ...
1 vote
1 answer
866 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
1 answer
43 views

How to apply_filter / add_filter within 2 others (simultaneous?) add_filter

I'm setting up a new form tracking system for my website (the form framework is Gravity forms). The codebase consists in a parent theme, plus 3 child theme (one for the main website, one for the shop, ...
1 vote
0 answers
648 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
2 answers
809 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
206 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
56 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
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 ...
-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 ...
1 vote
1 answer
938 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 ...
1 vote
3 answers
738 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
45 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
1k 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
932 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
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:
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 ...
1 vote
1 answer
1k 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
86 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
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/...
0 votes
1 answer
33 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
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, '...
0 votes
1 answer
544 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
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 ...
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
611 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
1k 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
21 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
502 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
137 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
262 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
2 3 4 5 6