Skip to main content
curban20
Participant
March 29, 2018
Answered

How to add check box buttons to pdf stamp?

  • March 29, 2018
  • 1 reply
  • 8443 views

Ill try to keep this short. I have a stamp that I need to add to multiple pages on a document (and will again in the future). The stamp has 3 locations for a check box, rather than going page by page and inserting a check on the stamps, I want to incorporate the check box into the stamp when it is placed (dynamic stamp).

What I want to do is place the stamp on page one, and have a dialogue box ask for a value ("yes" "no" or "maybe")...and after entering that value the stamp is placed on the page with the corresponding check box selected.

I have been able to create a pop up asking for the value, but have not been successful with linking the entered value to the check boxes. Anyone know a way to do this? Below is the javascript I am using to initiate the pop-up:

var cAsk =  "Response:" ;

var cTitle =  "Document State For Stamp  ";

if(event.source.forReal && (event.source.stampName == "#c7Qyko5Do_aY5ymhEV0Y0A"))

{

var cMsg = app.response(cAsk, cTitle);

cMsg;

event.value = cMsg;

      event.source.source.info.DocumentState = cMsg;

}

Thanks!

EDIT: Maybe a better way to describe what I really want:  What i want is to drop a stamp on a sheet and when I do so, I want it to ask me which box I want to check, and to have the stamp then placed on the sheet with that button selected.

This topic has been closed for replies.
Correct answer Thom Parker

You can do this, but are getting into more advanced Stamp Scripting. You can find loads of information on exactly this topic here:

PDF Stamp Annotations

and here:

Alerts, Popups, and Other Devices for Interacting with the User

Note that in the second link you'll find two methods for getting checkbox input from the user.

1. Add a checkbox to a popup alert

2. Create a custom dialog.

1 reply

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
April 2, 2018

You can do this, but are getting into more advanced Stamp Scripting. You can find loads of information on exactly this topic here:

PDF Stamp Annotations

and here:

Alerts, Popups, and Other Devices for Interacting with the User

Note that in the second link you'll find two methods for getting checkbox input from the user.

1. Add a checkbox to a popup alert

2. Create a custom dialog.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often