Pre Validation Form for Quform 2

Home Forums Quform WordPress Pre Validation Form for Quform 2

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23317
    Venom
    Participant

    Hi Ally,

    1. For Quform 2, I would like to know how to use the $result variable.

    2.when I added some custom code to the my_pre_validate function, it throws “There was a problem
    The response from the server was invalid or malformed”


    function my_pre_validate(array $result, Quform_Form $form)
    {
    // Custom code
    //custom code start
    $namefield = $form->getElement('quform_73_23');
    if( $namefield->isEmpty() {
    $namefield->setRequired(true);
    }
    // custom code end

    return $result;
    }
    add_filter('quform_pre_validate_1', 'my_pre_validate', 10, 2);

    #23400
    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. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy