Disabling Mobile Keyboard Input On Datepicker Fields
Hiding The Form Title
Most of the time, you'll want to hide the form title from the shortcode, but if you're somehow not able to do so, here's how you can hide the form title using a bit of CSS.
Centering An Entire Form
Here's a quick CSS snippet that will allow you to center an entire form. Replace 2 in #gform_wrapper_2 with the id of your form:.
Capturing The HTTP Referrer URL On Form Submissions
If you're trying to determine what page caused a form submission to occur, and need to get the referrer URL, here's how to do it.
Highlighting The Current Or Future Date In The Datepicker
If you need to highlight a current or future date within the datepicker, here's a code snippet to do it.Note: You'll need to replace #input_1_20 with a selector for your field.
Changing Stripe Billing Information
This snippet will allow you to change a customer's billing information that has been stored within Stripe, using a form.
Deleting Cached Entry Data
This snippet will allow you to delete the cached entry data when viewing an entry. Note that you should only use remove the cached data if you need to, as it will impact performance.
Adding/Removing Countries From the Country Select Field
In some instances, you may need to add or remove a particular country to or from the country selection field in Gravity Forms.
PayPal Pro – Sending a Custom Product Label and Description
If you need to define a custom product name and description within PayPal using the PayPal Pro add-on, this snippet will allow you to do so:.
Requiring a Cardholder Name
As some payment add-ons such as the Authorize.net add-on do not require the cardholder name to be validated, it is not typically required within the credit card field.