简体   繁体   English

B2C注册页面中的自定义属性

[英]Custom attribute in B2C Signup page

I have created custom attributes to my Azure B2C directory, and would now like to do a custom signup page but cannot figure out how to "map" the ui element to the custom attribute, please help. 我已经为我的Azure B2C目录创建了自定义属性,现在想要进行自定义注册页面,但无法弄清楚如何将ui元素“映射”到自定义属性,请帮忙。

From the example my guess is I need to use " extension_ " suffixed witht the field name in the element id? 从示例我的猜测是我需要使用“ extension_ ”后缀为元素id中的字段名称? The documentation is thin in this area 该领域的文档很薄

<div class="attrEntry">
    <div class="helpText"></div>
    <label>Loyalty number</label>
    <input id="extension_MemNum" class="textInput" type="text" placeholder="Loyalty number"><a href="javascript:void(0)" onclick="selfAssertedClient.showHelp('Membership number');" class="tiny">What is this?</a>
</div>

If you just want to style the signup page, there is only CSS to add. 如果您只想设置注册页面的样式,则只需要添加CSS。 The mapping is done automatically, edit the signup policy to include the new field. 映射自动完成,编辑注册策略以包含新字段。 You can arrange the order of the fields by dragging and dropping. 您可以通过拖放来排列字段的顺序。 All fields are auto generated in the UI. 所有字段都在UI中自动生成。 You can limit what values are entered in the signup/edit policy as well. 您还可以限制在注册/编辑策略中输入的值。

Go to page UI customization -> local account signup -> double click any of the attributes Now you can select a dropdown(or radio or chackbox) and limit what values are entered. 转到page UI customization - > local account signup - > double click any of the attributes现在您可以选择下拉列表(或无线电或chackbox)并限制输入的值。

Detailed steps: Go to the signup policy (or the edit policy) 详细步骤:转到注册策略(或编辑策略) b2c注册政策

Select Page UI customization and then Local Account sign up 选择页面UI自定义,然后选择本地帐户注册 b2c Page ui customization

Select the attribute and edit it (select dropdown, or radiobutton) 选择属性并进行编辑(选择下拉列表或单选按钮) 编辑b2c属性

https://azure.microsoft.com/en-us/documentation/articles/active-directory-b2c-reference-ui-customization/ https://azure.microsoft.com/en-us/documentation/articles/active-directory-b2c-reference-ui-customization/

If you look at the generated page, you will see all the generated fields, if you want to customize everything. 如果您查看生成的页面,您将看到所有生成的字段,如果您想自定义所有内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM