Can someone help me with the code required to send a flag when a person clicks "yes" on a radio button? I tried this but it didn't work:
if (DOCUMENT.LVL2 = "yes (advanced wound care and consult indicated)(triggers order") then MEL_SEND_FLAG("Flag","cstark","Urgent",str(._TODAYSDATE),"ESI Order","A Prolia Order has been placed","Orders")
else
endif
Change DOCUMENT.LVL2 = “yes (advanced wound care and consult indicated)(triggers order”) to this DOCUMENT.LVL2 = = “yes (advanced wound care and consult indicated)(triggers order)"
A single = is used to set a value on a document variable. The double == is used to evaluate if the variable equals the option you want.
Also you had your " at the end inside your parentheses. Make sure it is on the outside of it so it doesnt cause an issue.
I made the fixes you sent but I'm still not getting a flag when I click the button. Here's what I have now:
{if (DOCUMENT.LVL2 == "yes (advanced wound care and consult indicated)(triggers order)"
then MEL_SEND_FLAG("Flag","cstark","Urgent",str(._TODAYSDATE),"ESI Order","A Prolia Order has been placed","Orders"))
else
endif}
Thank you, I figured it out. I was missing a closing parenthesis.