1 person found this helpful
I would create a function to reset the field, that calls resetForm() to
reset the values (that's all it can do), and a bunch of other code to set
the default visibility settings. There's no reason changing the display
property to display.hidden (not in quotes!) wouldn't work...
You can't trigger the MouseUp action of buttons, but what you can do is call
the same function that they are calling, if you placed the code inside
Thanks for the quick reply
I have my reset button use the included actions to reset the form.
this.getField("ATTACH 11Nozzleoption").display = display.hidden;
this.getField("ATTACH 21Nozzleoption").display = display.hidden;
this.getField("ATTACH 13Nozzleoption").display = display.hidden;
this.getField("ATTACH 25Nozzleoption").display = display.hidden;
this.getField("ATTACH 15Nozzleoption").display = display.hidden;
And so on for many many more fields...
For the other buttons i used the "actions" instead of code, (When i started working on this form i didn't realize/know you could work with code. Also i didn't know that the actions would be fairly clunky to tweak...). So it looks like i'll have to look though my code for errors
I've double checked bits of my code regarding some of the fields that don't disapear.
So far there isn't any spelling errors nor any JS errors either.
Would there be anything that would block that code from working?
I can seem to find and plausible reason. The Field in question is made visible from a button using an action (not code). But i have plety of other fields like that, that do work. Any ideas? Work arounds?