- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2016 07:42 AM
how can I get the email id of user in client scripts? I have checked g_user object but there is no method in it
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2016 08:09 AM
An alternative would be to use the below in the default value column of variable definition.
javascript: gs.getUser().getEmail();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2016 08:01 AM
I don't think g_user holds email ID of the user.
But you can use g_user.userID to get the sys id of the current user and query the sys_user table and get it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2016 09:25 AM
Can you give me an example of this?
Let me ask you in another way.
I have form X and form Y. On form load of form X, I should get few column values of form Y. How?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2016 08:09 AM
An alternative would be to use the below in the default value column of variable definition.
javascript: gs.getUser().getEmail();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-30-2021 12:44 AM
gs cannot be used in client scripts;
must create a script include and use that in client scripts