I am using ADB2C Custom policy Signup page for my application.

Avinash Acharya 0 Reputation points
2024-06-05T09:25:43.66+00:00

I am using ADB2C Custom policy Signup page for my application. But the first editable textbox is autofocus which i a mandatory field. Now when i want to click some where outside of the textbox the error message is displayed that it is required field. So i need to a way when the page loads the autofocus is removed. I need some basic idea how to do that. I have tried various methods to remove the autofocus from the textbox and make the autofocus to some hidden field but nothing worked for me

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,996 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 26,961 Reputation points Microsoft Employee
    2024-06-25T04:51:06.8366667+00:00

    Hi @Avinash Acharya , you can remove the autofocus using JavaScript by following this thread.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.