Gs object not working in client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2015 11:42 PM
I am trying to use GS object in my client script but I am getting the error :-
'The object "gs" should not be used in client scripts'
How can I use gs in my script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2015 11:46 PM
gs is a server side object, it cannot be used in client scripts.
We can help you if you tell what exactly are you trying to achieve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2015 01:48 AM
Thanks. I am trying my hands on scripting and gs is mentioned in a document I came across. As it provides more methods, I wanted to explore it more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2015 08:55 AM
I would like to reference the current user. Where I am able to use gs I would use gs.getUser(). So how would I do that in a client script without using gs?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2020 09:44 PM