Script for importing mark-up by form dropdown selection

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

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

TOPICS
Acrobat SDK and JavaScript

Views

166

Likes

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

Script for importing mark-up by form dropdown selection

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

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

TOPICS
Acrobat SDK and JavaScript

Views

167

Likes

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
Oct 26, 2018 0
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?

Likes

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
Reply
Loading...
Oct 27, 2018 0
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?

Likes

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
Reply
Loading...
Nov 01, 2018 0
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");

Likes

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
Reply
Loading...
Nov 01, 2018 1
Nov 07, 2018

Copy link to clipboard

Copied

Thanks for the help!

Likes

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
Reply
Loading...
Nov 07, 2018 0