Sign in to Community
Sign in to view all badges
var oDoc = event.target
Initial.presence = "hidden"
Printinfo.presence = "visible"
Why when I click the button does the email send first and then the field hide and become visible. I need them to hide/visible before the form is emailed.
What is even more weird is that sometimes it works find and other times it doesn't. And I can't for the life of me figured out what is wrong!
Any help is always extremely appreciated!
Still doesnt work. the only reason for the condition was so that maybe it would prevent the email from happening before hiding the other fields.
So I removed the conditions and put the newButton.ExecEvent("click') at the end of all the hiding conditions and it still fires before it hides the fields.