Way to convert Boolean field in DOCX template from true to 'Yes'

The value on the .docx report template I have a Boolean field on the .docx report template and it is showing the value: true
I'm trying to show the 'Yes' instead and found the following value function:

{{boolVal1|bool(yes, no)}}

so I change from:
{{HasIndianHistory}}
to
{{HasIndianHistory|bool(yes, no)}}

Using that function is giving me a blank value which was showing true before. Am I using the right function or missing something?

Thanks,
Wes

Hello @wes.alegado,

This is a syntax for using with the Modern DOCX templating engine.

Make sure to switch the engine to Modern in the Processes settings.

Best regards,
Petr
Plumsail team

Thank you Petr! That fixed the issue!

1 Like