Skip to main content
Participating Frequently
December 9, 2020
Resuelto

How to make check boxes clear a signature block and mark it N/A

  • December 9, 2020
  • 2 respuestas
  • 1511 visualizaciones

I am creating a form with Acrobat Pro DC and the form has five signature blocks. I am trying to get three of the signature blocks "Squadron Approval" "MALS Approval" and "MAW Approval" to clear and have N/A display the those spaces if the "Repair Level" check box "Depot Level" is selected.

I have attempted to add an action to the Depot Repair check box - Trigger: Mouse Up - Run a JavaScript

 

this.getField("Squadron Approval").value = "N/A";

 

this.getField("MALS Approval").value = "N/A";

 

this.getField("MAW Approval").value = "N/A";

 

I experimented and found this JavaScript will work to add text to a normal text box, but will not work on a signature block.

 

I am also trying to get the text "N/A" to clear if the check box is unclicked. 

 

    *Note I originally used Radio Buttons instead on check boxes, but switched to text boxes with the same field name and different export values so they could be unchecked. 

Este tema ha sido cerrado para respuestas.
Mejor respuesta de try67

It's sometimes easier to show than to explain...

See: https://drive.google.com/file/d/1NHcH2ISEwilSYIyh-QecCc7bZCyxS2dM/view?usp=sharing

I implemented it for the Squadron field, but you can easily use that for the rest.

The code that does it is placed under the AutoCalc field I added to the bottom of the page.

2 respuestas

try67
Community Expert
Community Expert
December 10, 2020

Create a text field that's (partially) overlapping the signature field, and set it as read-only, hidden and with "N/A" as the default value. When you disable the signature field make this text field visible, and vice-versa. Generally speaking it's not a good idea to have overlapping fields, but if they are never interactive at the same time it should work fine.

Participating Frequently
December 18, 2020

Just to make sure I am fully understanding the text field. Are you saying to put the text field over the signature field or under it? Your "overlapping" verbiage sounds like I should put the text field over top of the signature field, but won't that create a big blank area in the middle of the signature block when a user goes to click the signature block?

 

And as far as disabling the signature field, that is part of the problem I can't figure out right now. Is there a setting or JavaScript to run to disable signature fields when the "Repair Level" check box "Depot Level" is selected?

try67
Community Expert
try67Community ExpertRespuesta
Community Expert
December 18, 2020

It's sometimes easier to show than to explain...

See: https://drive.google.com/file/d/1NHcH2ISEwilSYIyh-QecCc7bZCyxS2dM/view?usp=sharing

I implemented it for the Squadron field, but you can easily use that for the rest.

The code that does it is placed under the AutoCalc field I added to the bottom of the page.

Just Shoot Me
Legend
December 9, 2020

Your post was moved over from the "Using the Community" forum, which is for getting help using this forum system, to a better forum.

 

In the future, So people don't have to download the image you have attached, please use the Insert Photos icon found in the Tool Bar of the Post and Reply text entry dialog window as pictured below.
Since you Can't Edit your original post to remove the Attached screen shot Please include the screen shot you attached to a new reply to this conversation by clicking the Blue Reply button under your original post and use the Insert Photos icon in the tool bar.
The Insert Photos icon is this one in the Tool Bar.




Thank you.

I hope this helps. Best of luck to you.

Participating Frequently
December 18, 2020

Pardon the incorrect forum posting. That was the default value and I was not readily 

finding a way to change the location. 

 

As far as the attachment, it was not a photo. It was a copy of the Acrobat document I am working on for clarity of the problems I am running into.