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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742346535a4426656.html
评论列表(0条)