I have two form components: a dropdown box and a radio button. I'm trying to get the radio button to populate based off of what I choose from the dropdown box above it. So far, this is my best attempt at a MEL expression:
{If DOCUMENT.PROCEDURE ==
"Right sacroiliac joint injection under fluoroscopy" THEN DOCUMENT.SI_JOINT_S_ == "right" else DOCUMENT.PROCEDURE == "Left sacroiliac joint under fluoroscopy" THEN DOCUMENT.SI_JOINTS_S_ == "left" else DOCUMENT.PROCEDURE == "Bilateral sacroiliac joint under fluoroscopy" THEN DOCUMENT.SI_JOINTS_S_ == "both" else "" endif endif endif}
?
?
What am I doing wrong? Both items are based off of document variables. Would I have to make one an obs term for the expression to work? I'm convinced that there is a way to make this happen, I just need some help getting there.
Thanks,
R.
single '=' is for assignment, double '==' is for comparison
also you need additional 'if's after each else
{If DOCUMENT.PROCEDURE == "Right sacroiliac joint injection under fluoroscopy" THEN
DOCUMENT.SI_JOINT_S_ = "right"
else if DOCUMENT.PROCEDURE == "Left sacroiliac joint under fluoroscopy" THEN
DOCUMENT.SI_JOINTS_S_ = "left"
else if DOCUMENT.PROCEDURE == "Bilateral sacroiliac joint under fluoroscopy" THEN
DOCUMENT.SI_JOINTS_S_ = "both"
else ""
endif endif endif}
Yep. That did it. Thanks so much!
This is my first foray into programming, so I'm still trying to get my bearings.
R.
Good luck, if you would like some reading material to help get you going send me an email.
Mike