Feature report syntax - Choices & labels with HTML

146
1
Jump to solution
04-06-2021 05:44 AM
JamesBotterill4
New Contributor III

Hello survey123 community,

I have a survey where I prefer to pass HTML into the labels of Choices

JamesBotterill4_0-1617712505400.png

The question is  select_one type

JamesBotterill4_1-1617712584863.png

How do I pass the response into the Word template for printing a feature report ?

JamesBotterill4_2-1617712669792.png

 

 Currently the printed PDF returns the entire HTML syntax

JamesBotterill4_3-1617712752138.png

I had thought to use VB  object model to paste into Word.

Would be far easier if you could print the actual name of the choice and not the label

Grateful for any assistance

Cheers,

James

0 Kudos
1 Solution

Accepted Solutions
Jim-Moore
Esri Regular Contributor

Hi @JamesBotterill4 you can use the following syntax to print the name of a choice (instead of its label) for a select_one question:

${condition | getValue:""}

If you haven't seen it, there's a useful quick reference that provides report syntax examples for your survey questions. You can access it from the Manage Templates dialog. See this post for more info.

Hope this helps. Best, Jim

View solution in original post

0 Kudos
1 Reply
Jim-Moore
Esri Regular Contributor

Hi @JamesBotterill4 you can use the following syntax to print the name of a choice (instead of its label) for a select_one question:

${condition | getValue:""}

If you haven't seen it, there's a useful quick reference that provides report syntax examples for your survey questions. You can access it from the Manage Templates dialog. See this post for more info.

Hope this helps. Best, Jim

View solution in original post

0 Kudos