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.


Java Script not working

New Here ,
Jun 02, 2021 Jun 02, 2021

Copy link to clipboard

Copied

I have two forms.

Form 1 has a button that when clicked sends an email to the subscriber and others.  It works fine.

Form 2 has a button that when clicked does not send the email.  Same Javascript.

 

I have copied the button from form one to form two nothing from form two.

I have copied the button from form two to form one and it works fine in form one.

 

Form two does nothing.

Javascript is turned on.

 

Any suggestions. 

 

 

 

 

TOPICS
PDF forms

Views

191

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 ,
Jun 02, 2021 Jun 02, 2021

Copy link to clipboard

Copied

Check the Javascript console for errors.

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 ,
Jun 02, 2021 Jun 02, 2021

Copy link to clipboard

Copied

LATEST

There is likely a dependancy in the code this is not accounted for in the non-working form.  

It would help if we could see the code.

 

And do as Bernd suggests, always look in the console.

You'll find a video tutorial here:

https://www.pdfscripting.com/public/Free_Videos.cfm#JSIntro

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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