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

Script for importing mark-up by form dropdown selection

New Here ,
Oct 26, 2018 Oct 26, 2018

I am trying to import mark-ups based on the value of a dropdown on the page.

I currently have the import script as a toolbar button. I have several different pre-made styles and need the dropdown "RISER_TYPE" to import the mark-up associated to the value when selected.

DROPDOWNS 2.jpgDROPDOWN.jpg

EXAMPLE

if "RISER_TYPE" dropdown = "example value-1" then IMPORT("C:\PDF MARK UP TEMPLATES\TEMPLATE-1 REV 1.0.bax" , if "RISER_TYPE" dropdown value = "example value-2" then IMPORT("C:\PDF MARK UP TEMPLATES\TEMPLATE-2 REV 1.0.bax"))

TOPICS
Acrobat SDK and JavaScript
613
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

correct answers 1 Correct answer

Community Expert , Nov 01, 2018 Nov 01, 2018

The basic code would be something like this (as the custom validation script of the drop-down field):

if (event.value=="ABC") this.importAnFDF("/c/temp/abc.fdf");

Translate
LEGEND ,
Oct 27, 2018 Oct 27, 2018

Acrobat doesn't have the ability to import .bax files. It can import comments in FDF and XFDF files. What PDF viewer are you using?

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
New Here ,
Nov 01, 2018 Nov 01, 2018

I am using Bluebeam and Adobe. What would the script for importing various FDF files from a dropdown selection?

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 ,
Nov 01, 2018 Nov 01, 2018

The basic code would be something like this (as the custom validation script of the drop-down field):

if (event.value=="ABC") this.importAnFDF("/c/temp/abc.fdf");

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
New Here ,
Nov 07, 2018 Nov 07, 2018
LATEST

Thanks for the help!

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