This extension will allow you to validate your form based on the conditions that you set. You can use the variable $fields to access field values (eg $fields[“field_id”]). The validation succeeds only if the PHP code does not return or return false. If it returns [$field_id, $error_message], then the error message will be reported for that specific field.