how do you rearrange the user attribute fields on the azure ad b2c user flow login dialog

ataxlab canary 271 Reputation points
2020-10-16T05:07:27.19+00:00

when using the azure ad b2c user flows experience created via the portal, how do you customize the layout of the fields the user fills out in the signup profile? i've looked here https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-customize-ui but i don't see an obvious answer

the issue is i'm collecting about 10 attributes during signup, and the default field layout is random and not lexicographically correct (the fields aren't in the right order for a standard form) - please advise

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

Accepted answer
  1. AmanpreetSingh-MSFT 56,871 Reputation points Moderator
    2020-10-16T08:11:21.857+00:00

    Hello @ataxlab canary · Welcome to QnA platform and thanks for your query.

    In order to rearrange the user attributes, you would need to use your custom HTML and CSS file. Once you have your HTML and CSS ready, you can navigate to your User Flow, click on page layout and paste the URL of your HTML page as shown below:

    32872-image.png

    You can refer to my HTML and CSS files:

    To see how the UI look, you can run the policy using this link and click on Sign up now link. I have arranged Given Name and Surname in the same row. Using your own CSS provides you with the flexibility to customize the page and rearrange any field as per your need.

    -----------------------------------------------------------------------------------------------------------

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

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Stu Eggerton 16 Reputation points
    2021-10-20T05:57:25+00:00

    A simpler way to to re-order the fields on the sign-up page for local accounts form you can:

    1. open the sign-up user flow
    2. select Page layouts
    3. select the row Local account sign up page in the table
    4. under user attributes you may drag and drop or use the Move Up or Move down to select the field order
    3 people found this answer helpful.

  2. ataxlab canary 271 Reputation points
    2020-10-16T17:00:35.187+00:00

    thanks Amanpreet - i looked at the css and i can see selectors for a large set of fields. if true, is that the entire set?

    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.