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

Is it Possible to build this in Acrobat XI Pro...?

New Here ,
Feb 14, 2018 Feb 14, 2018

Hi All,

Thought experiment...

Is it possible to build something using JavaScript, what is essentially a form / checklist

Where;

  1. Cover page is a step by step process with to-do list in each step
  2. Each to do list allows to add pages to the said form / checklist
  3. Perform validity / criteria checking before moving to the next step

Appreciate your inputs

Holly

TOPICS
Acrobat SDK and JavaScript , Windows
304
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
LEGEND ,
Feb 15, 2018 Feb 15, 2018

3. You can’t dictate the order that a form is filled

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 ,
Feb 15, 2018 Feb 15, 2018

You can, in a way. You make all the fields read-only, except for the first, and when the user fill in the first field you enable the second one, then the third, etc. Not ideal, but it could work.

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 ,
Feb 15, 2018 Feb 15, 2018
LATEST

... it does work and is relatively easy to set up. Start with an array of field names and work your way through them one by one changing the readonly property as you go and setFocus to put the cursor in the right field. Monitor the event.rc and event.willCommit properties to determine if the input is valid.

When I've created these in the past I've written a console script to inject the scripts I need into the fields to save time.

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