Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to add check box buttons to pdf stamp?

New Here ,
Mar 29, 2018 Mar 29, 2018

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.

TOPICS
PDF forms
8.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Apr 02, 2018 Apr 02, 2018
LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 02, 2018 Apr 02, 2018
LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

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