URL encoding an ampersand as text

joedumond
Tera Contributor

How do I identify an '&' as text when it is part of a field value?

Here is the url:

https://dayzim.service-now.com/nav_to.do?uri=incident.do?sys_id=-1%26sysparm_query=impact=2%5eurgenc...

Notice the assignment company. When the incident is created I expect it to show as Company & Name in the assignment company field.

However, every attempt at formatting the ampersand [%26 & ${AMP} javascript:JSUtil.unescapeText("Company%20%26%20Name")] as text fails as the ampersand is treated as a parameter separator and I am left with Company (only) in the assignment company field.

find_real_file.png

1 REPLY 1

Michael Fry1
Kilo Patron

Looking at wiki Navigating by URL - ServiceNow Wiki


%26: ASCII-encoded ampersand (&); separates page parameters.


might have to add :