question

HeatherTurner-8540 avatar image
0 Votes"
HeatherTurner-8540 asked sikumars answered

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

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://docs.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.

azure-ad-b2c
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

haelshab avatar image
1 Vote"
haelshab answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sikumars avatar image
0 Votes"
sikumars answered

Hello Heather,

Yes, as @haelshab 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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.