What is the alternate for gel() in client script

ramesh_r
Mega Sage

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

 

 

8 REPLIES 8

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

As per the best practice we should not use "gel()" right, so I want to replace it with some other best practice method

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

LinkedIn

Yes, could you please provide the alternate option .?