Home › Forums › Quform WordPress › Required fields should have the 'required' attribute.
- This topic has 6 replies, 3 voices, and was last updated 6 years, 4 months ago by Ally.
- AuthorPosts
- January 24, 2017 at 10:29 am #20698diegocanalParticipant
Hi Ally,
I believe the
required
attribute should be added to the required fields, within the appropriate<input>
,<textarea>
and<select>
elements.Reference in MDN:
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/#attr-required
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea/#attr-required
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select/#attr-required
Regards
Diego- This topic was modified 7 years, 3 months ago by diegocanal.
January 24, 2017 at 12:53 pm #20702AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 25, 2017 at 11:04 am #20706diegocanalParticipantHi Ally,
I have tried editing in the /includes/elements directory the files text.php, textarea.php and select.php, adding something like this:
if ($this->getRequired())
…but did not succeed. Would you be so kind as to point me in the right direction?Thanks!
Regards
DiegoJanuary 25, 2017 at 7:50 pm #20708AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 25, 2017 at 11:53 pm #20710diegocanalParticipantHi Ally
Thanks a lot for your help, you’re very kind.
Regards
DiegoDecember 9, 2017 at 12:54 pm #23431pavsmkParticipantHI!
How can I add required attr to all my forms input?
Can You share code, please (function.php)?
Regards
PavelDecember 13, 2017 at 12:39 pm #23487AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.