Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Reader extension

Avatar

Level 2

I have a form in Livecycle and I need to enable the reader extensions so they can save a filled out copy on their local machine and I can't seem to make it work.  Any help would be great.

1 Accepted Solution

Avatar

Correct answer by
Level 10

The language you use to populate the date has nothing to do with that, so you can stay with FormCalc.

In fact you propably don't have to change anything in your form.

All you have to do happens in Acrobat, because here you're add the Reader Extenstions.

In Designer only check the somExpression of your date field.

In this case it's Form1.Page1.DateField1.

Screenshot_1.png

In Acrobat open the JS Console.

Type the full reference expression into the console plus the new Value it should have, such as "null".

this.xfa.form.Form1.Page1.DateField1.rawValue = null;

Press Ctrl + Return to execute that code.

The date field will be cleared immediately.

Now apply the Reader Extensions from Acrobat's menu.

Screenshot_2.png

View solution in original post

8 Replies

Avatar

Level 10

Hi,

you need at least Acrobat to enable save rights for Adobe Reader.

In Acrobat X goto File > Save As ... > Reader Extended PDF.

Avatar

Level 2

Ok I have Acrobat and here is the snag, I have a auto calcuate date field and when I save the form with the reader rights the date then becomes static and will no longer auto calcuate......any thoughts on how to get around this?

Avatar

Level 10

What method do you use to populate the date field? I mean what script in what event?

Avatar

Level 2

I'm using Java script for the auto calculate field.

Avatar

Level 10

Ok,

this is tricky but not impossible.

First you need to know the full somExpression of your date field.

Open the form in Acrobat, your field will be populated with a date.

Now open the JS Console (Ctrl + J) and erase the populated value.

Type the following line into the console and confirm with the return button:

this.xfa.form.form1.Page1.DateField1.rawValue = null;

The syntax always starts with

this.xfa.form

followed by the somExpression of the target object.

In my example it is

form1.page1.dateField1

Now, your field is cleared and you can apply the Reader Extensions from Acrobats menu.

Avatar

Level 2

I was unable to to see any values in the JS console, I took a closer look at the live cycle form and there was some java code that I think isn't doing anything and Formcalc is what is being used when I look at the script ediitor in live cycle.  Is there a way around it with formcalc or should I change it to java?

Avatar

Correct answer by
Level 10

The language you use to populate the date has nothing to do with that, so you can stay with FormCalc.

In fact you propably don't have to change anything in your form.

All you have to do happens in Acrobat, because here you're add the Reader Extenstions.

In Designer only check the somExpression of your date field.

In this case it's Form1.Page1.DateField1.

Screenshot_1.png

In Acrobat open the JS Console.

Type the full reference expression into the console plus the new Value it should have, such as "null".

this.xfa.form.Form1.Page1.DateField1.rawValue = null;

Press Ctrl + Return to execute that code.

The date field will be cleared immediately.

Now apply the Reader Extensions from Acrobat's menu.

Screenshot_2.png

Avatar

Level 2

I can't thank you enough, I really appreciate all your help