Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.