简体   繁体   English

Azure AD B2C 注册页面中的相关控件功能

[英]Dependent controls functionality in Azure AD B2C Signup page

I am using the AD B2C custom policies to achieve the Sign-in and Signup .我正在使用AD B2C custom policies来实现Sign-inSignup

In the Signup page, I need to have a dependent controls functionality.在注册页面中,我需要有一个依赖控件功能。 Like, once I enter a value in a text box and focus out, a rest API call should be made to pull the information from the Database and need to display that information in the next controls in the read only mode.就像,一旦我在文本框中输入一个值并聚焦,就应该调用 rest API 来从数据库中提取信息,并且需要以只读模式在下一个控件中显示该信息。

For example,例如,

  1. If I enter a postal code, It should auto populate the city information如果我输入邮政编码,它应该自动填充城市信息
  2. If I choose a city, It should auto populate the state and country details.如果我选择一个城市,它应该自动填充州和国家的详细信息。

Please suggest a way to achieve this scenario.请提出一种实现这种情况的方法。

You can use javascript with the custom policies for your requirement.您可以根据您的要求使用带有自定义策略的 javascript。 Once the postal code is entered in the text filed you can call an REST API and generate a dynamic dropdown box with javascript to bind the city details based on the dropdown selection you can bind the required filed.在文本字段中输入邮政编码后,您可以调用 REST API 并使用 javascript 生成动态下拉框,以根据下拉选择绑定城市详细信息,您可以绑定所需的文件。

There is a sample similar to you requirement.有一个与您的要求相似的示例 Please refer this it will be helpful请参考这会有所帮助

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

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