Fatal error: Uncaught exception

Home Forums Quform PHP Fatal error: Uncaught exception

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 9 years ago by Ally.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17285
    take2
    Participant

    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’

    What do I need to change or look for?

    #17303
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy