Menu
  • HOME
  • TAGS

Displaying Gravity Forms Forms Outside of WordPress

php,wordpress,gravity,gravity-forms-plugin

You might try the following add-on which generates an iframe you can use to display the form on pages outside WordPress: Gravity Forms Iframe Add-on The typical process to embed a Gravity Form on a site where the plugin isn't installed requires: Developing a custom page template with necessary code...

Dynamically Populate Gravity Form Field with Page Title

php,wordpress,gravity-forms-plugin

the_title() is a template tag that automatically echos the title and does not return a value. What you probably want is get_the_title().

Logic in merge tags, Gravity Forms

wordpress,logical-operators,gravity-forms-plugin

You want to use a Gravity Forms conditional shortcode in your notification message. It looks like this: [gravityforms action="conditional" merge_tag="{Field:1}" condition="is" value="desired value"]Show this content if the field is equal to the field value I specified earlier[/gravityforms] You can also check out this full tutorial (images included)....

Get value with JQuery in gravity form

javascript,jquery,wordpress,gravity-forms-plugin

You can grab the field values using jQuery .val(). So if you wanted to get the value for field 5 you could use something like this var field_five = jQuery('#input_2_5').val(); Input id's follow the naming convention of input_{form_id}_{field_id} and for multi input fields they will end with _{input_no}. You can...

gravity forms Displaying a message from dropdown select

javascript,jquery,ajax,wordpress,gravity-forms-plugin

Yes it is possible. You can add a CSS Class Name to the select in Gravity Forms. This will make it easy for you to add an event listener via your custom Javascript/jQuery. You will need your ajax endpoint of course, but you can add a listener like so: (function...

Gravity Forms Price based on financial quarter of year

php,function,gravity-forms-plugin

You can accomplish this with multiple product fields, a little custom code, and Gravity Forms' conditional logic Here's the custom code you'll need which uses the gform_field_value filter add_filter("gform_field_value_timestamp", "gwiz_populate_timestamp"); function gwiz_populate_timestamp( $value ){ return time(); } Once you add this code to you functions.php file, you would need to...

Can anyone tell me why when I add a value in this part of my form it doesn't show up on the screen?

wordpress,forms,user-interface,frontend,gravity-forms-plugin

I discovered the solution. The box width for the item was too short. I resized it and now you can view the entry.

Gravity Forms User Registration - disable for logged-in users.

php,wordpress,wordpress-plugin,user-registration,gravity-forms-plugin

Here is an article/snippet I wrote to do this... I didn't confirm if this is still the best way to accomplish this, but it certainly is a way that works. :) http://gravitywiz.com/skip-user-registration-for-logged-in-users/...

MySQL: Getting multiple rows based on the value of one row

mysql,gravity-forms-plugin

If you are meaning that you want to include only rows for a lead_id if there exists a row for that lead_id with field_number=9 and value=111. And otherwise, all rows for that lead_id should be excluded... You could do something like this: SELECT d.id , d.lead_id , d.form_id , d.field_number...

Gravity Forms form's first page footer is overlying the actual form

html,wordpress,forms,layout,gravity-forms-plugin

add overflow:hidden to .gform_wrapper ul.gform_fields and it will fix the issue - Screenshot

WordPress - Gravity Forms: How to add a “confirm phone number” field

wordpress,gravity-forms-plugin

This code from http://gravitywiz.com/custom-field-confirmation/ worked perfectly for me. There are more detailed instructions on their site. Paste this into your functions.php file and change register_confirmation_fields(8, array(1, 2)); to suit your form. /** * Double Confirmation Fields * http://gravitywiz.com/2012/05/01/custom-field-confirmation/ */ register_confirmation_fields(8, array(1, 2)); add_filter('gform_validation', 'gfcf_validation'); function gfcf_validation($validation_result) { global $gfcf_fields; $form...

Set and use variable outside of function in PHP

php,wordpress,php-5.3,gravity-forms-plugin

You can return the variable and use it like - function foo() { ...code to sell product through API... ... $status = $checkoutShoppingCartRequest['Result']['Status']; return $status; } $status = foo(); Then check. if ($status !== 'Success') { .... } ...

gravity forms fire js event on successfull form submission

javascript,wordpress,wordpress-plugin,gravity-forms-plugin

There's an event fired upon successful Gravity Forms submission: gform_confirmation_loaded. You can use it with jQuery like so: $(document).on("gform_confirmation_loaded", function (e, form_id) { // code to run upon successful form submission }); ...

Auto Completing Gravity Form

xcode,html-form,ibeacon,gravity-forms-plugin

I have sorted this issue, I added a bit of script to the webpage that submits the details once filled in. I then have the app add what the user enteres into the text fills added to the string which I then supply a webView that loads hidden in the...

WordPress Gavity Forms (Authorized.net add-on) how to move labels above the fields

wordpress,gravity-forms-plugin

This is probably too late, but you can try this: https://wordpress.org/plugins/gravity-forms-enhancements/ It moves the labels before complexed fields....

Import Edited data back to Gravity Forms Wordpress Plugin

php,database,wordpress,csv,gravity-forms-plugin

I haven't used this before but I wanted to at least share it's existence with you. https://wordpress.org/plugins/gravity-forms-mass-import/ A few people I know who have used it say that it does a great job with simple form data but for more complex field types, it doesn't hold up as well....

CSS pushing form field down

css,css3,gravity-forms-plugin

Add the following CSS, and the formatting should be fixed: .gform_wrapper .ginput_complex .ginput_left { clear: left; } .gform_wrapper .ginput_complex .ginput_right { clear: right; } While I can't reproduce your problem on any of my browsers, I suspect from your screenshot that the Zip Code field is essentially trying to be...

How to Programatically Add an Entry to a Gravity Form

wordpress,wordpress-plugin,gravity-forms-plugin

There is an API in Gravity Forms that you can use to create manual entries : http://www.gravityhelp.com/documentation/page/API_Functions#add_entries You can use the gform_after_submission[_formID] hook to trigger API calls to create new entries to other gravity form...

How to call a function included in an index.html in a Backbone Marionette Collection

jquery,wordpress,backbone.js,marionette,gravity-forms-plugin

The problem is my site is under SSL / HTTPS and I source the CryptoJS file with http. So my model / collection never get the global var.

Hide product field in gravity form

wordpress,gravity-forms-plugin

Try adding the "gf_hidden" class to your field via the Field Setting's "CSS Class Name" setting - or - you can set your product field type to be "Hidden" via the "Field Type" setting.

Why does my blob not get sent?

php,mysql,wordpress,gravity-forms-plugin

I finally made it. Gravity forms seems to not handle files exactly as examples I have been looking at. The problem was that it resulted in an incorrect file path being used in the SQL query. function testimage($path) { if(!preg_match("/\.(png|jpg|gif)$/",$path,$ext)) return 0; $ret = null; switch($ext[1]) { case 'png': $ret...