How to add custom validation for a Gravity Forms field

This is kind of a follow-up post to my previous post where I showed how to restrict a text area field in a Gravity Form to a certain number of words. That post used only JavaScript to limit the number of words which is not the most fool-proof way to do it since a user … Read more

How to limit the number of words in Gravity Forms Text Area field

Sometimes you need to limit or prevent users from entering more than a certain number of words in a textbox. I am only going to show how to do this quickly using Javascript only but if you’re going to use this on your website, you should also have a similar check using PHP on form … Read more

How to create a multi column Gravity Form layout using CSS Grid

Often times we need to create a form where instead of displaying each field one below another, we need to display fields side by side or in a multi-column layout. Gravity Forms by default has a single column layout but it does have excellent documentation on how to create a multi-column layout. If you only … Read more

How to create a calculator using Gravity Form

I have seen this question plenty of times so thought I will demonstrate how to create a simple calculator using Gravity Form. The idea is to disable/remove the default submit button and just display the result using JavaScript (jQuery).  Let’s create a simple Gravity Form first with two fields (both numbers). Let’s call them Input … Read more

How to load a custom JavaScript file on Gravity Forms admin screen?

Recently, I was working on creating several cascading dropdowns on a Gravity Form. Everything was working great on the front-end as I was loading my custom js file in my custom plugin using the following actions. add_action( ‘gform_enqueue_scripts_’.FORM_ID, ‘your_function_name’, 10, 2 ); add_action( ‘admin_enqueue_scripts’, ‘load_custom_wp_admin_style’ );   The second action is to load this script … Read more