I've been working on this for 2 weeks and can't figure it out. Any help would be appreciated.
I have a button (btn1) on my master page (mPage). I want to change the color of this button to red when the user chooses one radio button (radiobtn) on page 2 of a 3 page form. After that, the master page btn1 will be red for all the user pages (pages 1 through 3). Any idea how to do this?
This is a case where FormCalc has an advantage because you can use the * in the occurance number to reference all occurances of the Button.
xfa.resolveNode("form1.pageSet.Page1[" + i "]").ButtonName.border.fill.color.value = "255,0,0";
Thank you for your help. Your suggestion definitely works but I can't figure out how to solve 1 glitch. I can change the button color on any master page as you suggested. However, if any subform on that page recalulates, the master page button goes back to the original color. Could you please let me know what I am doing wrong?
That is because the page is layed out again each time. The button is being reset to its original state. You can put your test on the calculate event. That event will get fired each time the page is layed out.
Thanks much. I knew it must be straightforward. Paul, you are great. We appreciate your help on this forum.