Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Ghost Text for Text Field with Add Action

01371406
Level 5
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
dcidev
Correct answer by
Level 8
Level 8

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

Kyle

View solution in original post

1 Reply
dcidev
Correct answer by
Level 8
Level 8

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

Kyle

View solution in original post