Trying to run to get Date of Birth if you select Adult in the previous Dropdown.

Saqib Ahmed 46 Reputation points
2020-06-23T10:25:08.783+00:00

Hi I am trying to collect the date of birth for a user if he specifies that he is Under18....

I have defined 2 claims as follows

<ClaimType Id="extension_DateofBirth">  
        <DisplayName>Date of Birth</DisplayName>  
        <DataType>dateTime</DataType>  
        <UserInputType>DateTimeDropdown</UserInputType>  
  </ClaimType>  
  
      <!--Adding  Custom Attribute for AgeGroup -->  
<ClaimType Id="extension_AgeGroup">  
        <DisplayName>Your Age Group</DisplayName>  
        <DataType>string</DataType>  
        <UserInputType>DropdownSingleSelect</UserInputType>  
        <Restriction>  
          <Enumeration Text="Under 18" Value="Under18" />  
          <Enumeration Text="Adult" Value="Adult" />  
        </Restriction>  
</ClaimType>  

NOw in my <TechnicalProfile Id="SelfAsserted-ProfileUpdate">

I have added the following

<ValidationTechnicalProfiles>  
   <ValidationTechnicalProfile ReferenceId="Get-DOB" ContinueOnError="false">  
    <Preconditions>  
      <Precondition Type="ClaimEquals" ExecuteActionsIf="false">  
         <Value>extension_AgeGroup</Value>  
         <Value>Under18</Value>  
         <Action>SkipThisValidationTechnicalProfile</Action>  
       </Precondition>  
    </Preconditions>  
   </ValidationTechnicalProfile>  
 </ValidationTechnicalProfiles>  

and another Technical Profile as follows that is referenced "Get-DOB". which is as follows

<!--Adding write of DOB based on validation Profile-->  
      <TechnicalProfile Id="Get-DOB">  
        <InputClaims>  
          <InputClaim ClaimTypeReferenceId="extension_DateofBirth" />  
        </InputClaims>  
        <OutputClaims>  
          <OutputClaim ClaimTypeReferenceId="extension_DateofBirth" />  
        </OutputClaims>  
        <IncludeTechnicalProfile ReferenceId="AAD-Common" />  
        </TechnicalProfile>  
 </TechnicalProfiles>  

I am have 2 issues

  1. if I select Under18 the DOB should appear on the screen which it is not.
  2. After I select Under18 and press continue the explorer gets stuck on we are processing your information,.

The issues are the if I select Under18 from my dropbox the page goes into processing and doesn't display anything neither saves the value... btw I am saving both claims as well?

sanatized TrustFrameworkExtensions,XML file is attached.10517-trustframeworkextensions.xml

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,640 questions
{count} votes