CodeIgniter Forums
Form helper - novalidate - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Form helper - novalidate (/thread-71011.html)



Form helper - novalidate - Nome - 06-26-2018

Maybe I'm wrong but using the form helper it's impossible to specify single attributes. Today I wanted to use "novalidate" so far I have not figured out how to fix it.


RE: Form helper - novalidate - php_rocs - 06-26-2018

@Nome,

It is not impossible. What form field type are you trying create with a novalidate attribute?


RE: Form helper - novalidate - Nome - 06-26-2018

(06-26-2018, 01:16 PM)php_rocs Wrote: @Nome,

It is not impossible.  What form field type are you trying create with a novalidate attribute?

Oh sure:


Code:
<form ... novalidate>...</form>

Example:

PHP Code:
<?= form_open_multipart('answer/add', array('class' => 'needs-validation''but no validate ?'));?>