Highlighted

I'm getting a syntax error that I can't figure out how to fix

Community Beginner ,
May 18, 2020

Copy link to clipboard

Copied

Good afternoon,

I'm getting a syntax error

10: at line 11

Can anyone help me with this, please?  I don't know anything about JavaScript and would greatly appreciate any help you can provide.


Thank you,

Patti

 

//resets the field to disabled

this.getField("FirstShiftCoordinatorSignatureRow1").display = display.disabled;

this.getField("SecondShiftCoordinatorSignatureRow1").display = display.disabled;

this.getField("ThirdShiftCoordinatorSignatureRow1").display = display.disabled;

 

//set variables

var showCoining = true;

var checkLength = this.getField("Coining").value.length;

 

if(checkLenght) == Coining) {

     //app.alert(word);

   showCoining = false;

   //app.alert(showCoining);

} if(showCoining) {

   this.getField("FirstShiftCoiningSupervisorRow1").display = display.enabled;

   this.getField(SecondShiftCoiningSupervisorRow1").display = display.enabled;

   this.getField(ThirdShiftCoiningSupervisorRow1").display = display.enabled;

}

else {

   this.getField("FirstShiftCoiningSupervisorRow1").display = display.disabled;

   this.getField(SecondShiftCoiningSupervisorRow1").display = display.enabled;

   this.getField(ThirdShiftCoiningSupervisorRow1").display = display.enabled;

}

Views

230

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

I'm getting a syntax error that I can't figure out how to fix

Community Beginner ,
May 18, 2020

Copy link to clipboard

Copied

Good afternoon,

I'm getting a syntax error

10: at line 11

Can anyone help me with this, please?  I don't know anything about JavaScript and would greatly appreciate any help you can provide.


Thank you,

Patti

 

//resets the field to disabled

this.getField("FirstShiftCoordinatorSignatureRow1").display = display.disabled;

this.getField("SecondShiftCoordinatorSignatureRow1").display = display.disabled;

this.getField("ThirdShiftCoordinatorSignatureRow1").display = display.disabled;

 

//set variables

var showCoining = true;

var checkLength = this.getField("Coining").value.length;

 

if(checkLenght) == Coining) {

     //app.alert(word);

   showCoining = false;

   //app.alert(showCoining);

} if(showCoining) {

   this.getField("FirstShiftCoiningSupervisorRow1").display = display.enabled;

   this.getField(SecondShiftCoiningSupervisorRow1").display = display.enabled;

   this.getField(ThirdShiftCoiningSupervisorRow1").display = display.enabled;

}

else {

   this.getField("FirstShiftCoiningSupervisorRow1").display = display.disabled;

   this.getField(SecondShiftCoiningSupervisorRow1").display = display.enabled;

   this.getField(ThirdShiftCoiningSupervisorRow1").display = display.enabled;

}

Views

231

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Most Valuable Participant ,
May 18, 2020

Copy link to clipboard

Copied

Please post the exact name of the Adobe program you use so a Moderator may move this message to that forum

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
May 26, 2020

Copy link to clipboard

Copied

I'm using Adobe Acrobat Pro DC.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...