setMode('development'); $form->startFieldset('Subscribe to our newsletter'); $form->addInput('email', 'user-email', '', 'Your Email', 'required'); $form->centerButtons(true); $form->addBtn('submit', 'submit-btn', 1, 'Subscribe', 'class=btn btn-lg btn-success ladda-button, data-style=zoom-in'); $form->endFieldset(); // jQuery validation $form->addPlugin('formvalidation', '#post-with-ajax-form'); /* ================================================== 2nd form - without the formvalidation plugin ================================================== */ $form2 = new Form('post-with-ajax-form-2', 'horizontal', 'data-fv-no-icon=true, novalidate', 'bs4'); // $form2->setMode('development'); $form2->startFieldset('Subscribe to our newsletter'); $form2->addInput('email', 'user-email-2', '', 'Your Email', 'required'); $form2->centerButtons(true); $form2->addBtn('submit', 'submit-btn-2', 1, 'Subscribe', 'class=btn btn-lg btn-success ladda-button, data-style=zoom-in'); $form2->endFieldset(); ?>