...
The comment field of selection controls (dropdowns, checkboxes and radios) can be accessed in templates. This is supported for templates in forms and flows.
Let's say you have a radio control named Products in a form/flow step. The syntax is as follows:
{|your control name} - value of the selected option.
{|your options are Computers, Cell Phones, DVDs, TVS and Other. If Other is chosen, a comment field displays for additional information.
Use this syntax to access the selection control option and/or the selection control comment in a template. The examples use templates to specify the Task Information field on the Task List for a workflow:
- To access the value of the selected option via the template the syntax is - {|your selection control name} - curly brace-pipe-your control name-curly brace
- To access the value of the selection control comment via the template the syntax is - {|your selection control name.comment} - curly brace-pipe-your control name.comment-curly brace.
- To access the value of the
...
{, |dd} - the values of the selected options with separaters - useful if control is in a repeat
...
- selected control options in a repeat the syntax is - {the separator |your selection control name} - curly brace - the separator - space - pipe - your selection control name - curly brace.
- To access the value of the selected control comment fields in a repeat the syntax is - {the separator |your selection control name.comment} - curly brace - the separator - space - pipe - your selection control name.comment - curly brace.