Workflow and Report Templates 1 field 2 different responses

From my data set, a True/False question is asked of an inspector.

Is there a way in an email template to have True appear in one box, but if it was marked False in another box?

3X_c_e_ce78e86abace025f2fb0ba2f87576678d605afd0.png

I want the left box to display my True Value and the right box my False value.

Thanks.

Solved Solved
0 7 273
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

View solution in original post

7 REPLIES 7

Steve
Platinum 4
Platinum 4

That is very helpful, but I canโ€™t seem to get this expression to work right.

<<If: [Proper Label?]=Unsatisfactory <<[Proper Label?]>> <>

I have tried โ€œUnsatisfactoryโ€ and Unsatisfactory.

The log returns: Expression โ€˜[Proper Label?]=Unsatisfactory <<[Proper Label?]โ€™ is invalid due to: Arithmetic expression โ€˜(([Proper Label?] = โ€œUnsatisfactoryโ€) < [Proper Label?])โ€™ does not have valid input types.

I am not sure what that means.

What is the column type of the Proper Label? column?

Text

Aโ€™ight, so the problem isnโ€™t a data type mismatch. On to the next problem: your <<If>> tag is improperly constructed. This:

<<If: [Proper Label?]=Unsatisfactory <<[Proper Label?]>> <<EndIf>>

should be:

<<If: [Proper Label?]=Unsatisfactory>><<[Proper Label?]>> <<EndIf>>

You didnโ€™t close the <<If>> tag.

I understand what you are saying. I did forget to close it. Good catch.

<<If: [Proper Label?]=Unsatisfactory>> <<[Proper Label?]>> <>

results in:

Expression โ€˜[Proper Label?]=Unsatisfactory <<[Proper Label?]โ€™ is invalid due to: Arithmetic expression โ€˜(([Proper Label?] = โ€œUnsatisfactoryโ€) < [Proper Label?])โ€™ does not have valid input types. Error: Report โ€˜Dock Audit Recordโ€™ action โ€˜Action 1โ€™ Attachment template. โ€˜Ifโ€™ expression โ€˜[Proper Label?]=Unsatisfactory <<[Proper Label?]โ€™ yields a result of type โ€˜โ€™ rather than the expected type โ€˜Yes/Noโ€™.",

Ignore that. I copied the wrong log.

Works great!

Thanks for your help.

Top Labels in this Space