Support » Plugin: Real Time Validation for Gravity Forms » Validation Not working if admin required fields are present on form.

  • Hi,

    I was unable to make real validation working so i made below changes in my code plugin
    File Name : real-time-validation-for-gravity-forms/public/class-gravity-forms-live-validation.php

    Line number 154
    function “get_validation_string”

    add the below code snippet:
    if($field->adminOnly){
    return;
    }

    Let me know if you can add in plugin and update it or have more cleaner code.

    Thanks

Viewing 1 replies (of 1 total)
  • Same problem here. We converted a required field to administrative, and real-time validation stopped working and an error message appears on the javascript console. Disabling the Required checkbox fixed it but your plugin should handle this case and not try to validate fields that aren’t present.

Viewing 1 replies (of 1 total)
  • The topic ‘Validation Not working if admin required fields are present on form.’ is closed to new replies.