Need help with a Event - Script Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2016 03:23 AM
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
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2016 01:51 AM
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