Crow Canyon Software Forum
Formatting Multiple Choice Field Vertically in Email Template
Quote from pf-amalin on February 26, 2025, 6:36 pmWe have an email template in a workflow that includes a multiple-choice field. Currently, the selected values display horizontally, separated by semicolons, like this:
strawberry;apple;pear;banana;kiwi;mango
If possible, we’d like to format the values vertically for better readability:
strawberry
apple
pear
banana
kiwi
mangoI tried using a variable with this expression:
$regexreplace([Fruit|Fruit],@\s*;\s*,\r\n)
However, I couldn’t get it to work—maybe the column stores the values as an array, and
$regexreplace
requires text? Or perhaps I have the syntax wrong?Is there a straightforward way to display multiple-choice values vertically in an email template? Any guidance would be appreciated!
We have an email template in a workflow that includes a multiple-choice field. Currently, the selected values display horizontally, separated by semicolons, like this:
strawberry;apple;pear;banana;kiwi;mango
If possible, we’d like to format the values vertically for better readability:
strawberry
apple
pear
banana
kiwi
mango
I tried using a variable with this expression:
$regexreplace([Fruit|Fruit],@\s*;\s*,\r\n)
However, I couldn’t get it to work—maybe the column stores the values as an array, and $regexreplace
requires text? Or perhaps I have the syntax wrong?
Is there a straightforward way to display multiple-choice values vertically in an email template? Any guidance would be appreciated!
Quote from supportTeam on February 28, 2025, 2:11 pmHi Art,
“Is there a straightforward way to display multiple-choice values vertically in an email template? Any guidance would be appreciated!”
Yes, we can display the multi-choice values on separate lines in the mail template. Follow these steps:
- Go to the NITRO Workflow.
- Click on "Variables" at the top(see attachment)
- Create two variables:
- Name the first variable “varBr” and set its value to <br>, save it (see attachment).
- Name the second variable “varMultiChoice” and set its value as shown in the attachment and save it
4. In the mail template, add the variable “varMultiChoice” in the mail body as %%varMultiChoice##Value%%.
5.Save, publish the workflow, and check the results.
Hi Art,
“Is there a straightforward way to display multiple-choice values vertically in an email template? Any guidance would be appreciated!”
Yes, we can display the multi-choice values on separate lines in the mail template. Follow these steps:
- Go to the NITRO Workflow.
- Click on "Variables" at the top(see attachment)
- Create two variables:
- Name the first variable “varBr” and set its value to <br>, save it (see attachment).
- Name the second variable “varMultiChoice” and set its value as shown in the attachment and save it
4. In the mail template, add the variable “varMultiChoice” in the mail body as %%varMultiChoice##Value%%.
5.Save, publish the workflow, and check the results.
Uploaded files: