What is the alternate for gel() in client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 12:56 AM
Hi All,
I have the client script with the gel() method but I want to replace gel() with something else.
Please help me with an alternate for gel() in the client script
Sample Line below:
var name = gel('service_select_0'));
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 01:06 AM
Hi there,
You want to replace this with something else. Though, what do you have in mind? Or what is your reason / background for this? Please share a bit more so we can understand your request better, so we also can inform you correctly.
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 01:12 AM
As per the best practice we should not use "gel()" right, so I want to replace it with some other best practice method

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 01:16 AM
So is your question about avoiding the usage of DOM manipulation?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 01:18 AM
Yes, could you please provide the alternate option .?