I am trying to implement multicheckbox with dynamic values in azure ad b2c custom policy claims schema.
Example:
<ClaimType Id="city">
<DisplayName>Receive updates from which cities?</DisplayName>
<DataType>string</DataType>
<UserInputType>CheckboxMultiSelect</UserInputType>
<Restriction>
<Enumeration Text="Bellevue" Value="bellevue" SelectByDefault="false" />
<Enumeration Text="Redmond" Value="redmond" SelectByDefault="false" />
<Enumeration Text="Kirkland" Value="kirkland" SelectByDefault="false" />
</Restriction>
</ClaimType>
How to bind Restriction Enumerations with dynamic values rather than static values in policy XML? I am trying to bind a return value of rest API from user journey to MultiCheckBox.
Answer
Use javascript to generate multicheck box. Use rest api call to get value(out put claim) that needs to be bind with multicheckbox. Pass out put claim value to custom html page (self assertion page) Use javascript to bind output claim and multicheckbox