I tried it pretty much on every event trigger but none worked correctly. Here's what I have:
(question 1 has subquestion 1.a,1.b,1.c,1.d,1.e)
A DropDownBox is answered Y/N/NA for each of the 5 subquestions.
There is one explanation textbox for the entire question.
Desired results: The explanation turns color if the user answers any subquestion N/NA. If the user changes the answer the same event should occur.
My approach has been to create a script on each of the five drop-down box to change the color of the explanation box at the time the user makes the selection ie. if(dropdown1.rawValue==1){explanationbox.color....."255,255,255"} if(dropdown1.rawValue==2){explanationbox.color......"255,200,200"} if(dropdown1.rawValue==3){explanationbox.color......"255,200,200"}. But of course the last selection is always going to be the one that governs the color of the explanation box. I chose this approach to make the explanation box change as soon as the user answered. So then I needed to put a script in the explanation box that would search the answers of all the dropdown boxes and to be "255,200,200" if any answer was NO/NA otherwise stay white.
Here's what I put on exit in the explanation box:
if (form.subform1.DDBa.rawValue =! 2 || form.subform1.DDBb.rawValue =! 3){form.subform1.explanbox.border.fill.color.value="255,255,255";}
else {form.subform1.explanbox.border.fill.color.value="255,200,200";}
//And repeat this "If" statement 5 times for each drop-down box.
Hope this clarifies what my goal is here. I've spent many hours on this one and so far nothing has worked 100%. Thanks!