Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Fillable form + javascript after filled in

New Here ,
Aug 12, 2021 Aug 12, 2021

Copy link to clipboard

Copied

I created my own fillable form and I am having the data filled into the PDF dynamically through the browser. I added some javascript in the PDF field below because I would like to tell it when a bullet point is needed. The problem is that no matter where I place this javascript it doesn't seem to execute after dynamically filling the form. I tested it using "preview" in acrobat, and when I type in my own text, it works fine with the onchange event. But again when the text area is filled in dynamically through my web code, it doesn't work. Am I placing my javscript in the wrong spot? I tried placing the javascript in the below areas and none of them worked:
1. properties > format tab > Custom > Custom format script

2. properties > format tab > Custom > Custom format script

if(event.value != "") {

event.value = event.value.replace(/{bullet}/g, "\u2022");

}

Is there another place I'm missing for when your form is dynamically filled + flattend from server code for a web page?

 

TOPICS
JavaScript, PDF forms

Views

30

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 ,
Aug 12, 2021 Aug 12, 2021

Copy link to clipboard

Copied

Correction:

1. properties > format tab > Custom > Custom format script

2. properties > format tab > Custom > Custom keystroke script (this is the 2nd area I tried to place my script)

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
Adobe Community Professional ,
Aug 12, 2021 Aug 12, 2021

Copy link to clipboard

Copied

LATEST

It's possible the way you're filling in the data doesn't trigger any events, especially not if it's done in the browser.

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