Links in Enumeration Texts

DisplayName-3010 131 Reputation points
2022-06-03T11:53:28.92+00:00

Hello,

Is it somehow possible to add a link to the Text part for enumerations of checkboxmultiselects or for paragraphs? We would liek to be able to link to a terms of servive page which is available on another page. We are of course using custom policies.

Thank you for any hints. So far I tried to do inline html which seams to not work as expected.

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

Accepted answer
  1. AmanpreetSingh-MSFT 56,871 Reputation points Moderator
    2022-06-03T17:06:22.54+00:00

    Hi @DisplayName-3010 • Thank you for reaching out.

    This has to be done using custom HTML and JavaScript. I tested it out for TnCs claim which is defined as mentioned below:

          <ClaimType Id="TnCs">  
            <DisplayName>Terms of Service Consent</DisplayName>  
            <DataType>string</DataType>  
            <UserHelpText>I agree to the Amansi Corporation terms of service.</UserHelpText>  
            <UserInputType>CheckboxMultiSelect</UserInputType>  
            <Restriction>  
              <Enumeration Text="I agree to the Amansi Corporation terms of service (Enumeration text)." Value="tncsenumtxt" SelectByDefault="false" />  
            </Restriction>  
          </ClaimType>  
    

    Below is the JavaScript I used to convert the Enumeration Text to Hyperlink. This page doesn't allow adding script tags which is why I have attached the screenshot. Please view the page source of My Custom HTML Page for more details.

    208297-image.png

    This is how it will be displayed on the Signup page:

    208265-image.png

    Go to https://b2c.cloud365.in and click on the Sign up now link to see this in action.

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

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.