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
BedrockMission!

Learn More

View all

Sign in to view all badges

Initialize Event

Avatar

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile
_jerome_dinnat_
Level 5

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

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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.

Avatar

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile
_jerome_dinnat_
Level 5

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 :).

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

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.