iv tried to make it a doc lvl script but that only turns out a mess. iv change the script according to the buttons and it dosent work. the code works for check boxes since you have to click it to hide it again. but on with radiobuttons you can only show them and not hide since the code dosent recognize that the button is not checked beacause its a radiobutton and you dont have to click it directly to uncheck it.
is there away to make the scipt recignize that the radiobutton is nolonger checked. or is there away to make actual checkboxes act like radiobuttons? could thatwork? or could you describe how a doc lvl script whould look like at how to make them call the fields?
ps. i really appreciate the help
See this example file I've created. It shows how a doc-level script can be used to show/hide various fields based on the selection in a check-box group, as well as calling that same function from a button to achieve the same result. Notice the button changes the value of the check-box, but then also calls the CheckBox1_ShowFields function, to show/hide the fields based on the new value.