Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Any alternate for GlideStringUtil.urlEncode(value)?

HarshTimes
Kilo Sage

Is there any alternate for GlideStringUtil.urlEncode(value)? This is not working in scoped application

3 REPLIES 3

Chuck Tomasi
Tera Patron

JavaScript has one built in.



You might find this helpful.



JavaScript encodeURIComponent() Function


Hi Chuck,



I am facing a similar issue after upgrading to Jakarta and we are using the GlideStringUtil.urlEncode(value) block. But the Javascript api is not working either. upon investigation we found that amp%3B string is getting amended in the URL twice. Can you redirect us to a direction where we can find a solution?


See my response on your other thread.