Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spivurno/51e9025ec2fe00c60ffa89d5a398d3de to your computer and use it in GitHub Desktop.
Save spivurno/51e9025ec2fe00c60ffa89d5a398d3de to your computer and use it in GitHub Desktop.
<?php
/**
* Gravity Perks // Limit Choices // Fix Conflict with GF Real Time Validation
* http://gravitywiz.com/documentation/gravity-forms-limit-choices/
*/
if( class_exists( 'Gravity_Forms_Live_Validation' ) ) {
$gf_live_validation = Gravity_Forms_Live_Validation::get_instance();
remove_filter( 'gform_pre_render', array( $gf_live_validation, 'lv_apply_validations_to_form' ) );
add_filter( 'gform_pre_render', array( $gf_live_validation, 'lv_apply_validations_to_form' ), 11 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment