Javascript extractPages with variables?
I'm creating a form to extract pages but i'm having some trouble with it. The page range form fields are called s1s and s1e but the error is saying that its an invalid range. Can anyone help?
Code:
function extract(){
var job = this.getField("jN").valueAsString;
if(this.getField("s1s").valueAsString!=="" && this.getField("s1e").valueAsString!==""){
var s1s = Number(this.getField("s1s").valueAsString);
var s1e = Number(this.getField("s1e").valueAsString);
this.extractPages(s1s,s1e, job + "-1.pdf");
}
}
