http://www.gravityhelp.com/documentation/page/Gform_validation
the example code you offer here is a little confusing
<?php
add_filter('gform_validation', 'custom_validation');
function custom_validation($validation_result){
// set the form validation to false
$validation_result["is_valid"] = false;
$form = $validation_result["form"];
// specify the first field to be invalid and provide custom validation message
$form["fields"][0]["failed_validation"] = true;
$form["fields"][0]["validation_message"] = "This field is invalid!";
// update the form in the validation result with the form object you modified
$validation_result["form"] = $form;
return $validation_result;
}
?>
your example would override all other validations and only perform the one validation example you give. the following would be a better example
<?php
add_filter('gform_validation', 'custom_validation');
function custom_validation($validation_result){
if($_POST['input_1'] == 86){ //supposing we don't want input 1 to be a value of 86
// set the form validation to false
$validation_result["is_valid"] = false;
$validation_result["form"]["fields"][0]["failed_validation"] = true;
$validation_result["form"]["fields"][0]["validation_message"] = "This field is invalid!";
}
return $validation_result;
}
?>