Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Adding border to text field using script

Avatar

Former Community Member

1. Can some one tell me how to add border to the text feild using script.

2. In this case, what should be the default properties of that text feild.

LiveCycle Designer version : 7.0

Reader version: 9.0

I

1 Accepted Solution

Avatar

Correct answer by
Level 10

Can you try like this..

TextField1.border.edge.presence = "visible";

Not sure if this still works on the 7.0 version..

Thanks

Srini

View solution in original post

6 Replies

Avatar

Correct answer by
Level 10

Can you try like this..

TextField1.border.edge.presence = "visible";

Not sure if this still works on the 7.0 version..

Thanks

Srini

Avatar

Former Community Member

Srinivas, this script is working fine on local machine,but not working on FormsSever. :-(

Avatar

Level 10

Vijay,

       What do you mean by Form Server? Are you rendering the form using Work Bench?

Thanks

Srini

Avatar

Former Community Member

Hi Srinivas,

We don't use workbench. We used webservices to render PDF template and XML file to the Adobe FormServer that merges both the files and returns the data-prefilled PDF.

Avatar

Level 10

One thing I observed in your other file was, you did not set your form as Dynamic form.If you want to change property of the fields at runtime using script, then you need to save the file as Dynamic PDF..

Goto File -> Form Properties menu.. Select Default tab and select the Render form as "Dynamic XML Form".

While saving the PDF file, choose the type as Dynamic XML form..

Try these two and let me know if you need any help.

Other option is using XDP template instead of PDF.
The AFS Server can take XDP as an input and combine the XML to render the PDF.

Hope this helps..

Thanks

Srini

Avatar

Former Community Member

Hi Srini,

As you rightly pointed out, we didn't save the PDF as dynamic form.

Thanks a lot for your valuable information. :-)