Expand my Community achievements bar.

Form Ready Event

Avatar

Level 1

I have created XDP file containing one text filed (ABC) on which I putted the JavaScript in "form:ready event " which concatenated the three files and puteed the concatenated result in above text filed(ABC). It is working fine.

When I generated above XDP file using Livecycle Workbench it is getting generated properly and I am able to save it also.

But when I open it and if I edited any other filed besides(ABC)  and if I saved  and reopen it I found that the concatenated data in the above textfiled(ABC) get repeated. It will get repeated/Edit.

Any one knows how to stop it.

1 Reply

Avatar

Level 2

If I understand your question properly, it seems perfectly reasonable what is happening.

The form ready event, as the documentation said, initiates after the form design and data are merged, the finished form exists in memory, and the initialize, calculate, and validate events are complete. So, every time you reopen your form a new Form Ready event is launched and the script is executed.

I think that if you want to change this behaviour you have to change the event that executes the script or put more controls in the script first of doing actions (i.e. concatenating the string).

Can you share your form in order to realize if I understand well your question?

Hope this helps,

Alessio

Rome, Italy