Expand my Community achievements bar.

JS that works in a button but not in the form:ready event

Avatar

Former Community Member
Hi,



I have a form that charges values from database at the form:ready event. I have divided the form in the format page and the work page, as the working area will grow with a dynamic form I have set a header in the format page (just four fields, one date field, one dropdown list and two text fields)



The problem is the next, I have a button that calls the same function that the ready event does, when I click the button all the fields get their information from my Database, but when I open the pdf file using the form;ready event all the fields were charged excepting the ones defined in the format label.



So, I dont know what is happening. It seems that the function is correct because of it works in a button (all the names are global, all the SOM Expressions are correctly generated), so, somewhere I or the Designer are reseting the values. Do you have heard something similar?



Sorry for my poor english and the traductions, my designer is in spanish...



Thx

Rubén.
2 Replies

Avatar

Former Community Member
Hi,



I have viewed an english version of the designer, what I called format pages and working pages are the next:

format pages: Master Pages

working pages: Body Pages.



I you want I can sent you a form specially created to show this problem...



PLEASE HELP! this starts to be a pain on my neck.



BR

Rubén

Avatar

Former Community Member
Try your script in doc:ready instead of form:ready.



Chris

Adobe Enterprise Developer Support