I got this working by adding another invisible button. Then I was experimenting and now it's not working.Here's the script I'm using:
if
(form1.page4.pcEquip.newReplace.costCenter.presence ==
"visible")
{
Button5.execEvent("click");
}
else
{
Button4.execEvent("click");
}
When you click the button that is supposed to initiate the series, the form just sits with no respone. There's nothing showing in Ctrl + J window, either.
Thanks,
MDawn