Does anyone see a problem with the at the statement at the bottom? Any suggestions/help is very much appreciated.
If any of the conditions are met then DIET COUNSEL = YES, but if a form user clicks the "yes" radio for any of them and then clicks "no" on all of them - DIET COUNSEL still = YES....
AND if all radios are unchecked after checking "yes", then DIET COUNSEL still = YES.
During an update, I wish for the entries to behave as if a radio were assigned to a New Observation. The user clicks 'yes' for DIET COUNSEL by accident and DIET COUNSEL = 'yes' but if the user removes the entry in the form then DIET COUNSEL and it's changes are also removed from the "observations" during the update.
Many thanks in advance!
{if DOCUMENT.EATING_COUNSEL == "yes" or OBSNOW("TLC DIET CNS") == "yes" or OBSNOW("DIET LOW NA") == "yes", OBSNOW("DIET COUNSEL", "YES"), ""}
{if DOCUMENT.EATING_COUNSEL == "yes"
or OBSNOW("TLC DIET CNS") == "yes"
or OBSNOW("DIET LOW NA") == "yes" then
OBSNOW("DIET COUNSEL", "YES")
else
OBSNOW("DIET COUNSEL", "")
endif}
It works wonderfully. Thank you very much!!!
The main difference is the else OBSNOW("DIET COUNSEL", "") instead of "do nothing quotes" .... I thought that would return a "blank" next to the observation. Thanks for the speedy reply!!!
Best Regards