Gravity Forms

Gravity Forms Add-ons

How to use the new No CAPTCHA reCAPTCHA field

Just install the Gravity Forms No CAPTCHA reCAPTCHA plugin.

How to Allow Editors to Access Gravity Forms in WordPress (Or Assign Any Capability to Any User Role)

The User Role Editor plugin does a great job of allowing you to add capabilities to various user roles. Once you’ve installed and activated the plugin, you just need to go to Users > User Role Editor in your admin menu, select the role you’d like to modify in the drop-down at the top, and then check off every capability you’d like that user role to have. For adding and editing Gravity Forms, you’ll probably at least want to include the following capabilities:

  • gravityforms_create_form
  • gravityforms_edit_forms
  • gravityforms_view_entries (if you want the user to be able to see what has been submitted through the form)

How to disable past dates on date pickers

Just use this code:

    $(function (){
        $(".datepicker").datepicker({ minDate: 0 });

Don’t forget to set the correct date format, because it will change due to datepicker function.

How to change the date format globally

    $(function (){
        $(".datepicker").datepicker({ dateFormat: 'dd/mm/yy' });

How to disable specific weekdays


function disableSpecificWeekDays(date) {
    // 0 = monday, 1 = tuesday, 2 = wednesday, 3 = thursday,4 = friday, 5 = saturday, 6 = sunday
    var daysToDisable = [2, 4, 5];
    var day = date.getDay();
    for (i = 0; i < daysToDisable.length; i++) {
        if ($.inArray(day, daysToDisable) != -1) {
            return [false];
    return [true];

Post A Comment

Anti-Spam Quiz: