Changing error message for identical-validator fails

Home Forums Quform PHP Changing error message for identical-validator fails

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  PeterPichler 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29959

    PeterPichler
    Participant

    Hi Support-Team !

    I use the following code in my process.php for a simple radio_button:

    $radiobutton = new Quform_Element(‘radiobutton’,’Radio-Button’);
    $radiobutton->addValidator(‘identical’, array(‘token’ => ‘Yes’, array(‘messages’ => array(‘not_match’ => ‘MISMATCH’))));
    $form->addElement($radiobutton);

    The 2nd line should generate the error message MISMATCH, but fails and instead the “default” error message stored in indentical.php is shown.

    Thanks in advance for any help on that topic.

    Regards

    Peter

    #29966

    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.

    #29967

    PeterPichler
    Participant

    Hi Ally !
    Perfect, working great!!
    Thanks for your support, please mark solved !

    Regards
    Peter

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy