I would like to limit custom field validation code in a shared library (say functions.php) to only work on specific forms.
Using logic on the [ if($posted_field->id == n) ] value means I have to manually ensure that forms which the validation does not apply to do not contain those field values. With a number of validations * fields * forms its becoming a significant PITA to manage.
Is there any way to get ones hands on the form.id during the frm_validate_field_entry event ?
Be great to have access to similar logic we have in postprocessing like frm_after_create_entry with [ if ( $args['form']->id == 2 ) ]
ps frm_validate_field_entry $args['id'] is field.id , not form.id
Please login or Register to submit your answer