Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When a template refers to a selection control such as a dropdown, radio or checkbox, the selected option label will show in the form/workflow's run-time UI (i.e. . So, a selection control template used in a message control , or the label of another control will display the selected option label. ) However, for any use of when the template is used in form/workflow settings, such as a Form Action, Pending Message, or Doc Action Email, the template will display the option value. In this example we have a dropdown control named "dd" with options a=apples, b=bananas, c=carrots. Another control's label has the template {dd} and the message control also uses the template {dd}.

...

At run time, the template displays the selected option label in the UI. Notice that the user sees "apples" in both the text control's label and in the message. If Save Value is checked on the message, the value passed will be "You selected apples", retaining the dropdown template's label in the message control's value.

Image RemovedImage Added

We've also used the template {dd} to name the PDF, Form Settings to display a Form Action Message, set the PDF Name, and in the Email subject line.

...

Tip

If you need to use the selected option's label in such cases, consider using a business rule like this example to find get the option label and set it in a hidden control. Then use the hidden control's template in the form/workflow settings.

...