Skip to main content
May 18, 2020
Question

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

  • May 18, 2020
  • 1 reply
  • 546 views

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;

}

    This topic has been closed for replies.

    1 reply

    John T Smith
    Community Expert
    Community Expert
    May 18, 2020

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

    May 26, 2020

    I'm using Adobe Acrobat Pro DC.