I have used the DATE element in my form for ‘arrival date and departure date’.
The PHP script looks like this: $arrival_date = new Quform_Element_Date(‘arrival_date’, ‘Arrival Date’); $arrival_date->addValidators(array(‘required’, ‘arrival_date’)); $form->addElement($arrival_date);
$departure_date = new Quform_Element_Date(‘departure_date’, ‘Departure Date’); $departure_date->addValidators(array(‘required’, ‘departure_date’)); $form->addElement($departure_date);
When I complete the form online, I get the following error: Fatal error: Uncaught exception ‘Exception’ with message ‘Validator ‘arrival_date’ does not exist’