Check for an allowed value (coupons)
add_filter(‘frm_validate_field_entry’, ‘my_custom_validation’, 10, 3); function my_custom_validation($errors, $posted_field, $posted_value){ if($posted_field->id == 25){ //change 25 to the ID of the field to validate if(!in_array($posted_value, array(‘001‘,’002‘))){ //change 001 and 002 to your allowed values //if it doesn’t match up, add an error: $errors[‘field’.…Continue reading