Need help with a Event - Script Action

Frank1975
Kilo Guru

Hi all,

i am trying to create a Event _ Script Action to get the current Users information .

The end goal of this effort to use the getClientData and putClientData in a Client Script and use this information to Hide a field if a User does not belong to a certain Country.

I am stuck already at the Script action to receive the current Users Sys ID

event name : session.established

Script :

myLoginAction();

function myLoginAction() {

    var userID = gs.getUserID();

gs.log("UserID is : " + userID);

 

}

 

in the script log i see :   UserID is : system

Any idea what i am doing wrong here ? It sounded so simple.

PS: Running Geneva Patch 4

thanks in advance

Frank

5 REPLIES 5

Hi Andrew,


thanks for your help. I tried the Synchronous checkbox, but i could not add it to the form (not available in Personlize Layout).


After some research , i found that 2 ACL need to set to false in order make the Synchronous field available.



Once it was checked it worked like a dream



thanks for your help.



Frank