Alter order of controls on custom html page for azure b2c custom policy

Heather Turner 66 Reputation points
2021-05-28T15:44:16.27+00:00

I noticed documentation indicates that you are not supposed to alter order of the controls on a custom html page used for Azure B2C custom policy through javascript per https://learn.microsoft.com/en-us/azure/active-directory-b2c/javascript-and-page-layout?pivots=b2c-user-flow . However, this does appear possible, and I was wondering if there is a particular reason why we shouldnt do this.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

Accepted answer
  1. Hazem Elshabini 81 Reputation points
    2021-05-31T08:56:08.193+00:00

    Hello Heather,

    What you see on the login UI is not fully supplied by you, the developer. Azure AD B2C injects the HTML elements it uses to collect user information. For that to work reliably, the page must be static, hence the discouragement of manually manipulating these controls. It may work for you in some cases, but to guarantee reliability across different browsers and iterations of Azure AD B2C it is generally discouraged.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,721 Reputation points
    2021-06-01T09:45:05.037+00:00

    Hello Heather,

    Yes, as @Hazem Elshabini mentioned above, its discouraged to avoid any inconsistent behavior so you can try testing across different browsers as per your requirements when you customize.

    Thanks.

    ------
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    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.