Highlighted

Initialize Event

_jerome_dinnat_

31-07-2008

Hi,



The initial event of my form seems not to work.



I do this javascript for a test :



xfa.host.messageBox("test");



I try this script in an other new form and it works fine.



I delete all the components and script of my first form but the event still doesn't work.



My form properties :



Language : javascript run at server



Preview : Interactive Form, Xml Dynamic Form



Any help will be appreciated.



Thanks

Replies

Highlighted

pguerett

31-07-2008

If you run at server the messagebox has no where to display. If you want to test to see if server calcs are running then put the message into a visible field.
Highlighted

_jerome_dinnat_

31-07-2008

Ok thanks :P,



The real script I want to use is form1.mysubform.presence = "hidden";



It works run at client but not if I run it at server. If I use my form in a worklow, I need to run the script at server or at client ? I will test that. Thank you again Paul to take time to answer my silly questions :).
Highlighted

pguerett

31-07-2008

Remember that not all of the events will run server side ...is it possible that the event that you have chosen is not sunning server side? You can verify it by putting a value in a field on the event and if the field shows up and is populated than you know the server side script ran. Also if any errors are produced by your script they will appear in the system log.