Quantcast
Channel: Adobe Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 238792

Script isn't working?

$
0
0

Here's my script located on the click event of an invisible button:

 

//Create a variable to hold the document object

var v1 = form1.page1.selEquip.regEquip.rawValue


//REGULAR EQUIPMENT
if ((v1 == " ") || (v1 == null))

{
    xfa.host.messageBox( "Please select the type of equipment for this position" );
    xfa.host.setFocus("form1.page1.selEquip");   

}else {

{
Button4.execEvent("click");
}
}

 

When I test by clicking the initial button, nothing happens. Nothing shows in Ctrl + J nor does the script checker find anything wrong with the script.

 

Thanks,

MDawn


Viewing all articles
Browse latest Browse all 238792

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>