How to enable javascript | Community
Skip to main content
Level 2
May 13, 2009 6:59 PM UTC
Question

How to enable javascript

Hi, I have a form that check for data validation using script. If the "Enable Acrobat JavaScript" is not check at the Adobe Reader, the form data validation will not be executed. How can I solve this problem? Any script to enable the javascript? There is this AddRequirement method for the document object, I tried but don't seem to work. Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

14 replies

nileshpb
Level 2
Jul 19, 2018 10:48 AM UTC

Hi All,

We too are facing the same issue , we created a dynamic pdf using form designer and included javascripts to execute on them.

The javascript doesn't get executed on the client machine unless we click on enable all features button.

Does anybody has a solution for the same?

Translate
ashlingd5092451
New Participant
Feb 17, 2016 10:42 AM UTC

how do i enable javascript on a moble using adobe acrobate reader ?

Translate
Level 2
May 20, 2009 7:04 PM UTC

Thank you...Appreciate your effort. I guess there is no perfect solution for this scenario...

Translate
Jono_Moore
Level 10
May 20, 2009 6:47 PM UTC

I don't know. I don't think so, again if javascript gets disabled there won't be any way to do anything with javascript.

I find it unlikely that someone would turn off javascript half-way through filling out a form. But, I guess you never know what someone might attempt.

Translate
Level 2
May 20, 2009 6:25 PM UTC

If half-way through the form, the user turn off the javascript, is there any way the form get any notification or event?

Translate
Jono_Moore
Level 10
May 20, 2009 4:50 PM UTC

If you follow the instructions from the site I posted, there's no way anybody can work with the form if javascript is disabled because there's no form displayed until they enable javascript.

Translate
Level 2
May 20, 2009 4:32 PM UTC

Thank you... The problem is that some user might choose not to follow the instruction that was prompted. Is there a way to prevent user from proceeding on with the editing of the form if javascript is not enabled. The Adobe document mentioned the AddRequirement function. I just can't get it work.

Translate
DrDave6
Level 3
May 15, 2009 5:31 PM UTC

Hi Adobe_Learning (I'm learning too!) :-)

I too have developed a LC form using JS. I just tested with Acrobat Read 9 by turning off JS, as described in this post. When I went to open my form, the reader gave a warning and asked if I wanted to turn JavaScript on.

This tells me that YOU don't have to do anything within the form. However, if you have a document or set of instructions that go with your form, you probably want to address that issue there -- tell users that they need JS turned on

Good Luck!

Translate
Jono_Moore
Level 10
May 14, 2009 6:31 PM UTC

I think about all you can do is the method in that blog post - and put a message in that tells people they need to enable javascript to use the form.

If javascript is disabled there's not going to be any way to use javascript to do anything.

Translate
Level 2
May 14, 2009 6:17 PM UTC

Thank you. I read the Adobe document about javascript API, there is this document object method AddRequirement that can check for the setting on the preference javascript category. Has anyone come across this method? Thank you.

Translate