Home › Forums › Quform PHP › "your message" as required
Hello – I want to make the “your message” textarea as a required field, with it’s own error message.
I tried it like this – but it’s not working: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $textarea = new Quform_Element(‘textarea’, ‘Ihre Nachricht an uns’); $textarea->addFilter(‘trim’); $textarea->addValidator(‘required’, array( ‘messages’ => array(‘required’ => ‘Bitte geben Sie eine Nachricht ein’) )); $form->addElement($textarea); . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . URL: http://body-brain-index.de/axel-hengst-neu/kontakt.php . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
So – what did I wrong? Regards Daniel
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.