Expand my Community achievements bar.

Scripting does not work in blank form

Avatar

Former Community Member
I am using LiveCycle Desiner 8.0

I create new blank document, add one text field (TextField1) and one button (Button1).

I want to change a text field's caption programmatically, so I add a click event script as folowing:



----- form1.#subform[0].Button1::click: - (JavaScript, client)

xfa.resolveNode("TextField1.caption.value.#text").value = "new caption";



...and there is NO effect.



On other side, when I take an existing pdf (for example from here: http://download.macromedia.com/pub/developer/livecycle/scripting_table_columns.zip),

the same works perfect.



Where's the magic? Please, help... :(
1 Reply

Avatar

Former Community Member
The problem solved. Difference was in format of the pdf (static or dynamic)