Expand my Community achievements bar.

Problem saving Reader extended PDF created in Livecycle with Javascript functions built in

Avatar

Level 2

Afternoon

I have created an interactive PDF in Livecycle with built in Javascript functionality.  I need users to be able to complete and save the PDF so have saved it as a Reader extended PDF.  The problem I'm having is that when a user completes the form,saves it, and then opens it again the Javascript functionality is not showing despite showing the original selection that the user has made.  The Javascript is simply a dropdown menu that will show a different table based on the selection so isn't anything major.

I've trawled forums and this is driving me mad so I'd appreciate some help.

I am using Adobe Pro XI.

Thanks in advance

Ben

8 Replies

Avatar

Level 9

Ben,

Could you please share your form @ bibhu69@gmail.com?

Thanks,

Bibhu.

Avatar

Level 2

Thanks Bibhu

Thanks for the offer of help but as it stands the form is confidential so I couldn't email it.  Is there any chance you could try to explain over email please if I explain the problem in detail?

Cheers

Avatar

Level 9

Unless and until I see the form, it's difficult for me to say anything. You cal share a dummy form which has the same difficulty.

Thanks,

Bibhu.

Avatar

Level 2

At the moment I can't sorry.  I've run the Javascript debugger in Adobe Pro and it seems there are some errors

Acrobat EScript Built-in Functions Version 11.0
Acrobat SOAP 11.0

ReferenceError: Table is not defined
1:XFA:form1[0]:TextFieldContainer[0]:#subform[3]:#area[1]:Button1[0]:initialize
ReferenceError: Table is not defined
1:XFA:form1[0]:TextFieldContainer[0]:#area[2]:Button1[1]:initialize
ReferenceError: Table is not defined
1:XFA:form1[0]:TextFieldContainer[0]:#area[3]:Button1[2]:initialize
ReferenceError: Table is not defined
1:XFA:form1[0]:TextFieldContainer[0]:#area[4]:Button1[3]:initialize

Basically the form has been built in Livecycle Designer and have drop down menus that show or hide tables depending on the selection but when I Reader Enable the form and users make a selection and then save the form it is not showing the table when it is opened again.

I appreciate your help

Avatar

Employee

I doubt this will work in Reader even without the Reader Extensions based on your script errors above. The form does not need to be reader enabled to run javascript, only to save the data locally.

it appears to me to be a scope issue as the table is undefined. Check your SOM expresssion from the button. Is it fully qualified?

Without seeing the form, I cannot say more.

Avatar

Level 4

Hi Ben,

Did you ever figure this out?  I am having the same issues and I am looking for a solution

Thanks!
Jodi

Avatar

Level 2

Hi yes I got it sorted.

From what I remember there is a little tab in the bottom right hand corner of the Livecycle window which when clicked should show 'Form properties'.  Click that and I'm sure there's an option within 'Run time' that will allow you to retain the settings.

Cheers

Ben

Avatar

Level 4

Thanks Ben,

I will see if I can find it !

Jodi