Salesforce

How Do I Set the Default Option for a Choice Control? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Set the Default Option for a Choice Control? (Magic xpa 3.x)

When you create a choice control, by default nothing will be selected, so the control will show as a blank, or as nothing selected. This can look strange to the user, who may expect the “first” item to be selected by default.

However, you can set the default option quite easily. Remember that a choice control is still a piece of data, and can be initialized like any other piece of data. In this example, the “Red” option (in the Display List property) is associated with ‘1’ (in the Items list property). So we initialize the Radio button virtual to ‘1’ in the Init column.

See also

The Online and Rich Client Samples projects (program HG19 and RHG19)

Reference
Attachment 
Attachment