Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Javascript not executing in right order

$
0
0

 

Hey my great javascript buddies!!!  Okay So I have the following script on a click event:

 

var oDoc = event.target

 

Initial.presence = "hidden"

Printinfo.presence = "visible"

oDoc.mailDoc ({

                         bUI:true,

                         cTo: Name.rawvalue

                         cSubject: Hello

                         });

 

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!

Jodi

 

 

 



Viewing all articles
Browse latest Browse all 5571

Trending Articles