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

176

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
community guidelines

correct answers 1 Correct Answer

Most Valuable Participant , 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");

Likes

Translate

Translate
Adobe Community Professional ,
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?

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
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?

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
community guidelines
Most Valuable Participant ,
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");

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

Copy link to clipboard

Copied

LATEST

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
community guidelines