Share on
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.
Elementor Pro plugin is not included.
Return an error if the date choice is before today
if( $fields['date']
Accepts only time field between 7 PM and 10 PM
if( $fields['time'] 22 ) {
return ['time', 'You must to choose a time between 7PM and 10PM' ];
}
Made with in Venice – Italy
Copyright © 2023 Ovation S.r.l.
Registered Office: Via Bernardo Quaranta 45 – 20139 Milan – Italy
Operating Office: Via Don Tosatto 127 – 30174 Venice – Italy
VAT ID IT04331280273 – R.E.A. MI 2661115
Share capital euro 10.000 full paid
DYNAMIC·OOO is a registered trademark of Ovation S.r.l.
Usage without permission is prohibited.
Dynamic.ooo is an independent product.
It does not represent Elementor.com