Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent Can someone look at this and tell me what I am doing wrong?

Status
Not open for further replies.

FireFett

Programmer
Mar 31, 2000
42
US
Can some one give me a hand please.

I have the following script on the page open event. It is to scan all the fields on the PDF and if any field has a value sets my variable d to 1. Currently it always returns a 0.

The Script:

var d= 0;
for(var i =0;i<this.numFields;i++)
{if(this.getNthFieldName(i).value !=""){if (d=0) {d=1}}}

app.alert(d);


Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top