Preview and Test action with if else conditions

Options
Jacob_154284
Jacob_154284 Posts: 75

I have times with I use an if else statement to reference a field but when I use the Preview and Test method, it requires the if, else, and both fields to be required to test. This hinders me from testing what the actual result of the action would be. I would like it to instead, only show the actual fields and allow me to choose which one I have filled in or left empty.

Example:
{{#if barcode}}{{barcode}}{{else}}{{manual-sample-id-number}}{{/if}}

0
0 votes

Swept · Last Updated