Skip to main content
Participating Frequently
Oct 26, 2018 11:41 PM UTC
Answered

Script for importing mark-up by form dropdown selection

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.

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

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Nov 1, 2018 5:32 PM UTC

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

4 replies

Participating Frequently
Nov 1, 2018 5:17 PM UTC

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

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Nov 1, 2018 5:32 PM UTC

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
Participating Frequently
Nov 8, 2018 5:14 AM UTC

Thanks for the help!

Translate
Inspiring
Oct 27, 2018 3:22 PM UTC

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