-
1. Re: How to change the script event?!?
Magus069 Aug 7, 2013 4:22 PM (in response to Magus069)Sorry for the trouble... Let's simplify my question....
I have 2 buttons
Button 1 : xfa.host.messageBox("Hello World!");
Button 2 : Button1.event__click.script.value = "xfa.host.messageBox(\"World answers Hellow!\")";
When i click back on button1 i want the messagebox to show "World answers Hellow!"
Anyone can help?
-
2. Re: How to change the script event?!?
Bibhu Bikash Nayak Aug 7, 2013 10:48 PM (in response to Magus069)How about calling the click event of Button2 inside the click event of the Button1. Inside the click event of the Button2, you can put the folloing script. Prior to that in the click event of the Button 2 you can put "xfa.host.messageBox(\"World answers Hellow!\")";
Then in Button1's click event put Button2.execEvent("click");
Thanks,
Bibhu.
-
3. Re: How to change the script event?!?
Magus069 Aug 8, 2013 10:28 AM (in response to Bibhu Bikash Nayak)Actually this is not what i was looking for, I really need to change the script...
e.g. I have a button in a expandable table and i want each buttons to have a different messagebox....
when the button is created a new script is assigned to the event_click...
This is what im looking for...
Looks like LiveCycle Designer is not able to change the scripts events even though the property is there and is a "get" & "set"
so I should be able to change script event.... but I think i need to reload/recreate the form by using the modified code...

