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

Creating usable checkboxes on multiple layers

New Here ,
Jan 21, 2020 Jan 21, 2020

Copy link to clipboard

Copied

I have created a PDF with several layers. Each one of the layers has different line items with checkboxes as people review the line items and check off that they're done. Depending on what questions they ask at the beginning of the document they would get a specific layer. My issue is I will add check boxes to each one of the layers but they don't show up as actual check boxes when I add The layers to my document. How do I keep the checkboxes usable for each one of the individual layers. I would like to have them go through the document and depending on answers activate different layers. Thanks. 

TOPICS
Acrobat SDK and JavaScript

Views

272

Translate

Translate

Report

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 ,
Jan 21, 2020 Jan 21, 2020

Copy link to clipboard

Copied

Do you mean that you use the "Layers" panel to import a PDF page as a layer? 

If so then no, you can't do it this way. When Acrobat imports a PDF page as a Layer (OCG), it is only importing the flattened page content, not the active elements, such has form fields. 

 

However, you can attach a form field or any annotation to an OCG.  

You need to understand a bit about OCGS to understand how all this works. What Acrobat likes to call a Layer isn't really a layer at all. What they are referring too is an OCG (Optional Content Group).  This is just a marker in the PDF file There is an internal list of these OCGs, and each one has a state that is either on or off. Any block of content in the PDF can reference an OCG name.  If the state of that OCG is off, then the content is not drawn. Annotations and form fields can also referenced an OCG, so you can use on OCG is show and hide a form field. There is a varety of criteria that can set the OCG state, including a script. However, none of these features are available in the Acrobat UI.

 

Fortuanately, you can find a tool here that  gives you the ability to set complex OCG properties and assign an OCG to a form field.

https://www.pdfscripting.com/public/programs/downloadsearch.cfm?searchtype=simple&searchmode=cat&key...

 

 

 

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

Votes

Translate

Translate

Report

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 ,
Jan 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

LATEST

I guess you created this document with InDesign, where form fields are dependent on a layer.

As Thom said, this is not the case in a PDF document where form fields float over the layout and the layers.

Votes

Translate

Translate

Report

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