I'm trying to get an orders button to show in a visibility region only if the answer to a question is yes. I've gotten to understand visibility regions tied to document variables well enough (not great, but well enough for the time being). I've searched and can't find anything about tying it to an OBS Term though. Here's the full scenario:
Q) Are you sexually active [radio buttons yes,no,refused, Connection is New Observation (default previous), OBS Term is SEXUALLYACT].
If (I'd usually put document. here with the name of the document variable) SEXUALLYACT == "Yes", show visibility region with button for NEWORDER Custom List.
I need to use OBS Terms rather than document variables so we can then query and report as needed. I still have to come up with those reports as well, but that's after I have forms entering sample data...
You should be able to use the expression:
OBSANY("SEXUALLYACT") == "Yes"
Minor mistakes in what I had tried. I had tried OBSANY.SEXUALLYACT == "Yes" and similar variations (including the same things with OBSNOW) but didn't put it all together quite correctly.
I'll try your method just to be thorough, but I received assistance outside of the forum that worked. The way I have it now is:
{
OBSANY("SEXUALLYACT") == "Yes"
}
Since the parenthesis (or lack thereof) through it off, I wonder if yours should also include the curly brackets as I know it works with them?