forms - How to add required fields in user profile admin page?

I managed to add custom fields in the user profile admin page like this.The problem is when I add required="true&qu

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 badges
Add a comment  | 

1 Answer 1

Reset to default 2

Actually, in profile.php, edit-user.php and new-user.php, you have to :

  1. add form-required class on <tr>, not on the input field
  2. add aria-required="true" on the input field

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742346535a4426656.html

相关推荐

  • forms - How to add required fields in user profile admin page?

    I managed to add custom fields in the user profile admin page like this.The problem is when I add required="true&qu

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信