AnsweredAssumed Answered

Webdirect call a script twice ??

Question asked by iwacham on May 17, 2017
Latest reply on Aug 31, 2017 by smower

Hello,

i have a question and if someone have the idea

 

i have a script to check a variables, this come from browser by GET

 

then i set in "File Options" -> Scripts Triggers -> OnFirstWindowOpen

i load my script there.

 

and is when my problem start, because i need to start this script in this event

to block users to access the system direct.

 

but to get my parameters from URL i need to call like this

 

http://MY_URL?script=MY_SCRIPT&$VAR1=123&$VAR2=123

 

and the same script load in OnFirstwindowOpen and when i call by url this is loaded again

and i cant get the parameters

 

if i remove the event from Scripts Triggers, i get the parameters but the validation to block users to access

dont work, because the script is not loaded.

 

sorry for this long post.

Outcomes