Hi @tdevelopers,
Thanks for reaching out!
There is a hook yes you can use for validation after the user clicks the submit button.
Please check:
https://github.com/quillforms/quillforms/blob/master/includes/class-form-submission.php#L185
You should use this filter: “quillforms_entry_field_validation”
If validation message isn’t empty, the form will jump back to this field and gives the user the validation message you set via the filter.
Please let us know if this works!
Best,
Quill Forms Team
Hi,
thanks for the quick response.
I checked the hook and created a snippet for the validation I have added the following code.
add_filter('quillforms_entry_field_validation','quillform_validation',10,6);
function quillform_validation($validation_message,$block,$block_type,$field_answer,$entry, $form_data) {
if($block['name']=="email") {
$email = $field_answer;
if ( !filter_var( $email, FILTER_VALIDATE_EMAIL ) ) {
$validation_message = 'Please enter a valid email.';
}
// some 3rd party api call. and return error message
}
return $validation_message;
}
this returning 400 response and message in network tab, but not showing the message just sowing this
Can”t connect to the server right now! but not the actual message
Hi Shah,
Thanks for reporting this issue.
We will investigate it and will release a fix for that by the end of this week or the next week at worst cases.
Best,
Quill Forms Team
Hi @quillforms
is there any update on this issue ?
Thanks
Shah
Hi @tdevelopers,
Thanks for waiting.
We will release a version today to fix this. Also, the version includes some other many features.
We will ping you when the release is published.
Best,
Quill Forms Team
Hey @tdevelopers,
We have released version 1.16.0 which should fix your issue.
Please let us know if your problem is fixed now.
Best,
Quill Forms Team
Hi @quillforms
it’s working perfectly as required, thanks for your support.
Thanks
Shah
Hello @tdevelopers,
Glad that we were able to help!
We would be grateful if you have a few mins to write a feedback about us here: https://wordpress.org/plugins/quillforms/#reviews
It really means the world to us.
Best,
Quill Forms Team`