Skip to main content
Participating Frequently
March 11, 2024
Question

Adobe DC | Checkbox - Appearance/ Options Checkmark stops being visible but still functions

  • March 11, 2024
  • 1 reply
  • 1333 views

Hello:

Is there a hack for this??? The cross or check disappears
Can anyone tell me why a checkbox stops showing the "On" indicator?  It appears until I save the file or change action in another UNRELATED field.   

  • Strange - the java script still executes perfectly when the mouse up action  - but the "X" is missing in the box when it is "On"

    I have to keep deleting the control and adding another back in
    Perhaps is there a character limit to the name???
    Box Name:  "ChkBx_SoldTo_SameAsLoc"

So frustrated...
Thank you for your valuable time and help with this issue.

This topic has been closed for replies.

1 reply

Participating Frequently
March 11, 2024

Java in action
Mouse Up>Run java

//If Check box is checked
if(event.target.value="On"){

// Get the text for BillTo from text from SoldTo else typed text in ShipTo

this.getField("Text_BillToLegalName").value=this.getField("Text_SoldToLegalName").value;

this.getField("Text_BillToDBA").value=this.getField("Text_SoldToDBA").value;

this.getField("Text_BillToLegalName").value=this.getField("Text_SoldToLegalName").value;
this.getField("Text_BillToDBA").value=this.getField("Text_SoldToDBA").value;

this.getField("Text_BillToAddress").value=this.getField("Text_SoldToAddress").value;

this.getField("Text_BillToAddressLn2").value=this.getField("Text_SoldToAddressLn2").value;
this.getField("Text_BillToCity").value=this.getField("Text_SoldToCity").value

this.getField("Text_BillToProvidence").value=this.getField("Text_SoldToProvidence").value;

this.getField("Text_BillToState").value=this.getField("Text_SoldToState").value

this.getField("Text_BillToZip").value=this.getField("Text_SoldToZip").value;

this.getField("Text_BillToCountry").value=this.getField("Text_SoldToCountry").value;

}




Nesa Nurani
Community Expert
Community Expert
March 11, 2024

You need to use double equal signs when comparing:

Change: if(event.target.value="On"){

To: if(event.target.value=="On"){

Assuming you set export value to "On".

Participating Frequently
March 11, 2024

The Double equal sign corrected the indicator, it doe show up. However; now the script does not function. Nothing happens when clicked.