0

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 ?

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.