SetChoice business rule can be used in 2 formats: basic or extended. Enter the business rule in either the basic format or in the extended format, in the business rule container attribute.
=SetChoice("Choice Attribute ID","Choice Item ID","Trigger on Element Creation",'Source Attribute Name')
=SetChoice("Choice Attribute ID","Choice Item ID","Trigger on Element Creation","Source Attribute Value 1_Corresponding Choice Item ID1","Source Attribute Value 2_Corresponding Choice Item ID2",'Source Attribute Name')
| Parameter | Description |
| "Choice Attribute ID" | The ID of the Choice attribute. |
| "Choice Item ID" | The ID of the Choice Item. In the basic format, the Choice Item ID that is provided in the format is used to set the value of the choice attribute. In the extended format, the source attribute values and the corresponding choice item IDs are provided in the format. The "Choice Item ID" is used only when the value of the source attribute is not mapped to a specific choice item ID. |
| "Trigger on Element Creation" | Set this parameter to "true" to trigger the business rule when an element is created. Set this parameter to "false" to trigger the business rule when the value of the source attribute change. |
| "Source Attribute Value_Corresponding Choice Item ID" | In the extended format, provide choice item ID of values in the Choice attribute that has to be set based on the value of the source attribute. Use "_" to indicate the mapping between the source attribute value and the corresponding choice item ID value in the choice attribute. |
| 'Source Attribute Name' | The name of the source attribute that the business rule listens to. Use commas to specify more than one source attribute parameter. For example, 'Source Attribute Name1','Source Attribute Name2'. |