Expand my Community achievements bar.

SOLVED

Ghost Text for Text Field with Add Action

Avatar

Level 5

     I have a text field with ghost text. There is also a button to add additional text fields. When a user clicks the "add an additional text field button" the new text field appears but without the ghost text of the original text field. I have tried scripting the click event of the button to fire or run:

textfield.execEvent("ready:form"); or textfield.execEvent("form:ready");

Why 2 ways? LiveCycle has two ways of presenting this:

1) on the drop down menu for events (e.g. form:ready)                                                                                

2) on the field name at the top of the script area after selecting the event in the drop down menu (e.g. textfield.ready:form:: - (Javascript, client)

Is there a better way to do this? My concern is that if I am succesful at firing the event form:ready or ready:form the event may reset all of the text to the original default Ghost text of "Kansas City Royals". Thanks

https://workspaces.acrobat.com/?d=w3PioRrv8DUp2ruhoOY*8g

1 Accepted Solution

Avatar

Correct answer by
Level 8

Put your form:ready event script into the initialize event.

Kyle

View solution in original post

1 Reply

Avatar

Correct answer by
Level 8

Put your form:ready event script into the initialize event.

Kyle