This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Meysam
How can I add required
attribute the text field generated by Form::text
?
I tried the following and it works:
<?= Form::text('title', '', ['class' => 'form-control', 'placeholder' => 'title', 'required' => '']) ?>
But required attribute should not have any value. Is there any other way to make a text field required?
Crazymodder
Hi,
That looks totally ok. Does it not work like expected? If you like you can also make
'required' => 'required'
1-3 of 3