UI Macro/UI Page to get KB URL (button with link) next to a field

Hari7
Kilo Guru

UI Page:

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
	<a href ='/kb?id=kb_article_view&sysparm_article=KB0021078'target='_blank'>Click here to know about Story Points</a>;
</j:jelly>

 

Error Message: Error at line (3) The reference to entity "sysparm_article" must end with the ';' delimiter.

 

Referred this Error Message in Hi Support KB Article and there seems to be property to be set to true and this is already true.

Also, tried changing & to &amp, %26 but nothing worked. Any help on this is much appreciated

 

Screenshot:

Hari7_0-1692894226994.png

 

 

1 ACCEPTED SOLUTION

Replaced the code as below and it worked.

 

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
	<a href="/kb?id=kb_article_view&amp;sysparm_article=KB0021078'target='_blank'>Click Here</a>;
</j:jelly>

View solution in original post

5 REPLIES 5

Mohith Devatte
Tera Sage
Tera Sage

Hello @Hari7 ,

please try this 

 

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
	<a href ='/kb?id=kb_article_view&sysparm_article=KB0021078&target=_blank'>Click here to know about Story Points</a>;
</j:jelly>

 

 

You added an extra single quote after sysparm_article which should be replaced by &.

 

Hope this helps 

Mark my answer correct if this helps you 

Thanks

 

 

 

No, still the same error message.

 

Hari7_1-1692895417508.png

 

Hello @Hari7 

try these steps 

Go to sys_properties.LIST table

-->Seach for property with name 'glide.ui.escape_all_script'

-->Set the value to true. Note that only users with the security_admin role can make the changes by elevating the privilege.

 

refer to this article 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1113649

 

Hope this helps 

mark the answer correct if this helps you 

thanks

Replaced the code as below and it worked.

 

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
	<a href="/kb?id=kb_article_view&amp;sysparm_article=KB0021078'target='_blank'>Click Here</a>;
</j:jelly>