The documentation of the "Item"-Element currently lists two attributes: "Text" and "Value". However, when adding translations for enumerations in a "Restriction"-element of a "ClaimType", the value of the "SelectByDefault"-value will be lost. According to the schema-definition, the "Enumeration"-Element of the ClaimType and the "Item"-element of the LocalizedCollection are of type "EnumerationItem", which defines the attribute "SelectByDefault". Only when this attribute is set also for the "Item"-elements in the LocalizedCollection the selected default will be shown on the form.
Example:
The following excerpt shows a "country"-claim with "germany" as the selected default value:
<ClaimType Id="country">
<DisplayName>Country</DisplayName>
<DataType>string</DataType>
<UserInputType>DropdownSingleSelect</UserInputType>
<Restriction>
<Enumeration Text="Germany" Value="germany" SelectByDefault="true"/>
<Enumeration Text="Switzerland" Value="switzerland" SelectByDefault="false"/>
</Restriction>
</ClaimType>
</ClaimsSchema>
A corresponding LocalizedCollection might look like this:
<LocalizedCollection ElementType="ClaimType" ElementId="country" TargetCollection="Restriction">
<Item Text="Deutschland" Value="germany" SelectByDefault="true"/>
<Item Text="Schweiz" Value="switzerland" SelectByDefault="false"/>
</LocalizedCollection>
Please add the missing attribute to the documentation of the "Item"-element.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 14a1a1f1-4cb3-956a-8168-5e3101ea5f76
Version Independent ID: a1a9db9c-d0d1-eb5c-0fb5-fb36f71effaa
The documentation of the "Item"-Element currently lists two attributes: "Text" and "Value". However, when adding translations for enumerations in a "Restriction"-element of a "ClaimType", the value of the "SelectByDefault"-value will be lost. According to the schema-definition, the "Enumeration"-Element of the ClaimType and the "Item"-element of the LocalizedCollection are of type "EnumerationItem", which defines the attribute "SelectByDefault". Only when this attribute is set also for the "Item"-elements in the LocalizedCollection the selected default will be shown on the form.
Example: The following excerpt shows a "country"-claim with "germany" as the selected default value: <ClaimType Id="country"> <DisplayName>Country</DisplayName> <DataType>string</DataType> <UserInputType>DropdownSingleSelect</UserInputType> <Restriction> <Enumeration Text="Germany" Value="germany" SelectByDefault="true"/> <Enumeration Text="Switzerland" Value="switzerland" SelectByDefault="false"/> </Restriction> </ClaimType> </ClaimsSchema>
A corresponding LocalizedCollection might look like this: <LocalizedCollection ElementType="ClaimType" ElementId="country" TargetCollection="Restriction"> <Item Text="Deutschland" Value="germany" SelectByDefault="true"/> <Item Text="Schweiz" Value="switzerland" SelectByDefault="false"/> </LocalizedCollection>
Please add the missing attribute to the documentation of the "Item"-element.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.