Enables user profile field selection and ordering. Represents selections as a querystring of UserProfileField=ID&UserProfileField=ID&...
Supported Data Types
custom
Scripted Extension Configuration XML
<property id="propertyId" labelResourceName="nameResource" descriptionResourceName="descriptionResource" dataType="custom" template="core_v2_userProfileFieldOrder" key="UserProfileField" width="300" height="200" visibilityPropertyId="" visibilityPropertyValue="" visibilityHideOtherIds="" enableRequiredTracking="false" requiredKey="Required" maxSelections="" />
Plugin Configuration C#
var property = new Property
{
Id = "propertyId",
LabelResourceName = "nameResource",
DescriptionResourceName = "descriptionResource",
DataType = "custom",
Template = "core_v2_userProfileFieldOrder",
Options = new NameValueCollection
{
{ "key", "UserProfileField" },
{ "width", "300" },
{ "height", "200" },
{ "visibilityPropertyId", "" },
{ "visibilityPropertyValue", "" },
{ "visibilityHideOtherIds", "" },
{ "enableRequiredTracking", "false" },
{ "requiredKey", "Required" },
{ "maxSelections", "" }
}
};Options
| Name | Description | Default | Options |
|---|---|---|---|
| key | The name of the key when reading/writing enabled values in querystring format. | UserProfileField | |
| width | The pixel width of the UI. | 300 | |
| height | The pixel height of the UI. | 200 | |
| visibilityPropertyId | The ID of a property to monitor to control the visibility of this UI. When the value of this property is equal to visibilityPropertyValue, this UI will be shown. | ||
| visibilityPropertyValue | The value of the visibilityPropertyId property that causes this UI to be shown. | ||
| visibilityHideOtherIds | Comma-separated list of property IDs to hide when this UI is shown based on visibilityPropertyId/visibilityPropertyValue configuration. | ||
| enableRequiredTracking | When enabled, enabled user profile fields can also be checked to identify they are required. Required fields are stored in the value as a querystring against the requiredKey. | false | true, false |
| requiredKey | When enableRequiredTracking is enabled, this key will be used to identify field names that are required in the value querystring. | Required | |
| maxSelections | Optional number of maximum enabled profile fields. |