I have created my own login script that automatically starts when then solutions starts. The problem is that when I have a succesful login. I am going to the good menu layout but it goes right back again to the login layout and when I enter layout modus i’m back in the main menu layout.
It worked fine but when i put the login script on the onload event of the form it didn’t work anymore but when I put the script on a button it works fine.
Try onShow rather than onLoad if you want it to run every time the form is loaded such as when you go in and out of designer. onLoad just runs the first time the data is loaded.
The problem is that when I use the event on show. It does the same thing. I’m going back from form to form what I really need is method like exit script