document javascripts


i trying create document javascript define fields don't have define fields each time, call function.

 

it keeps throwing syntax error.

 

help, please.

 

function addpressure()

{

var red10=this.getfield("red10")value;

var red20=this.getfield("red20")value;

var red30=this.getfield("red30")value;

var red40=this.getfield("red40")value;

var brown10=this.getfield("brown10")value;

var brown20=this.getfield("brown20")value;

var brown30=this.getfield("brown30")value;

var brown40=this.getfield("brown40")value;

var grey10=this.getfield("grey10")value;

var grey20=this.getfield("grey20")value;

var grey30=this.getfield("grey30")value;

var grey40=this.getfield("grey40")value;

var white10=this.getfield("white10")value;

var white20=this.getfield("white20")value;

var white30=this.getfield("white30")value;

var white40=this.getfield("white40")value;

var blue10=this.getfield("blue10")value;

var blue20=this.getfield("blue20")value;

var blue30=this.getfield("blue30")value;

var blue40=this.getfield("blue40")value;

}

you'd have this:

 

var red10=this.getfield("red10").value;

 

in other words, add "." before "value".

 

it's not clear me supposed though. when make corrections , call function, won't anything. mean "define fields"?



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working