Skip to main content
Participant
March 28, 2025
Question

Dynamischer Stempel: Kontrollkästchen

  • March 28, 2025
  • 1 reply
  • 363 views

Hello,

 

I have created a dynamic stamp in Adobe Acrobat that includes checkboxes. While other elements, such as dynamic text fields, function correctly within the stamp, the checkboxes are not interactive when the stamp is inserted into a document.

 

I understand that form fields within a stamp become non-interactive once the stamp is applied to a document. This is why i search for a way to make the checkbox interactive (clickable) 

 

Thank you very much in advane.

1 reply

PDF Automation Station
Community Expert
Community Expert
March 28, 2025

Are you using a dialog window for user entry?  Can you post your script?

Participant
March 28, 2025

Thank you for your messsage. In my stamp are are textfields and checkboxes.

 

For the text fields the user is asked for input and the text can be seen in the stamp right after. For this I go to "prepare document" > right click on textfield > properties > calculate > script > and then paste in the script below. 

 

However I can't find a way to include checkboxes that can be ticked after the stamb is inserted. 

 

Below my script and the stamb. 

 

 

var cAsk = "Vorsteuer Anteil: ";
var cTitle = "Eingabe Anteil Vorsteuer";
if(event.source.forReal && (event.source.stampName == "#stempeltest"))
{
var cMsg = app.response(cAsk, cTitle);
event.value = cMsg;
event.source.source.info.exhibit = cMsg;
}

 

PDF Automation Station
Community Expert
Community Expert
March 28, 2025

You could use another app.response but the user's response would have to match the export value of the check box.  You could default the response to x and set the check box export value to x.  Users would have to remove the default if they don't want the box checked.  You could use an alert box instead with Yes/No buttons and write a script that takes the result of alert box as a condition of whether to check the box.  Here's some guidance on the response and alert boxes:

https://pdfautomationstation.substack.com/p/popups-and-browse-windows-part-i

https://pdfautomationstation.substack.com/p/popups-and-browse-windows-part-ii

Keep in mind that it is annoying for the end user to dismiss multiple popups so ideally a popup dialog should be used with all responses on one popup window.  The following articles don't show how to make make check boxes but will get you start and show you where to find the answers:

https://pdfautomationstation.substack.com/p/popups-and-browse-windows-part-v

https://pdfautomationstation.substack.com/p/popups-and-browse-windows-part-vi

https://pdfautomationstation.substack.com/p/popups-and-browse-windows-part-vii

It's complicated.  If you're interested in a quote for me to program it for you, please send me a private message.