admin管理员组文章数量:1333185
I managed to add custom fields in the user profile admin page like this.
The problem is when I add required="true"
or required="required"
on fields, the submit button do action without checking required empty inputs.
The submit is running by Ajax ?
How can I force to make required fields in this admin page ?
I managed to add custom fields in the user profile admin page like this.
The problem is when I add required="true"
or required="required"
on fields, the submit button do action without checking required empty inputs.
The submit is running by Ajax ?
How can I force to make required fields in this admin page ?
Share Improve this question asked Apr 8, 2020 at 15:52 J.BizMaiJ.BizMai 9002 gold badges10 silver badges30 bronze badges1 Answer
Reset to default 2Actually, in profile.php
, edit-user.php
and new-user.php
, you have to :
- add
form-required
class on<tr>
, not on the input field - add
aria-required="true"
on the input field
本文标签: formsHow to add required fields in user profile admin page
版权声明:本文标题:forms - How to add required fields in user profile admin page? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742346534a2457634.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论