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

Script for importing mark-up by form dropdown selection

New Here ,
Oct 26, 2018 Oct 26, 2018

Copy link to clipboard

Copied

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

Views

491

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

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");

Votes

Translate

Translate
LEGEND ,
Oct 27, 2018 Oct 27, 2018

Copy link to clipboard

Copied

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?

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

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");

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

Copy link to clipboard

Copied

LATEST

Thanks for the help!

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