This content has been marked as final.
Show 2 replies
-
1. Re: How do I code conditional text?
radzmar Oct 31, 2014 11:23 AM (in response to kkoenen)Assuming your text blocks are different text objects and total is a numerice field, you can use a script in the total field calculate event.
FormCalc:
if ($ lt 500) then textBlock1.presence = "visible" textBlock2.presence = "hidden" else textBlock1.presence = "hidden" textBlock2.presence = "visible" endif
JavaScript:
textBlock1.presence = this.rawValue < 500 ? "visible" : "hidden"; textBlock2.presence = this.rawValue < 500 ? "hidden" : "visible "; -
2. Re: How do I code conditional text?
kkoenen Oct 31, 2014 11:36 AM (in response to radzmar)Beautiful! That is just what I needed.
Thanks so much for taking the time to respond.
Katy

