<script custom-tag="" type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"field_decorations and ref_contributions attribute does not work for URL field ","image":"http://support.servicenow.com/29f1d2661baf6010cafa53d8624bcb43.iix","author":{"name":"ServiceNow Support","url":"http://support.servicenow.com/now"},"keywords":"ServiceNow, NowSupport public Knowledge Base articles, Known Error,KB0781649,","wordcount":"211","publisher":"ServiceNow","url":"https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0781649","datePublished":"2019-10-10","dateCreated":"2019-10-10","dateModified":"2022-06-29","description":"<h2>field_decorations and ref_contributions attribute does not work for URL field </h2><br/><div style=\"overflow-x:auto\"><h2>Description</h2><div><p>The <span style=\"font-family: arial, helvetica, san","articleBody":"<h2>field_decorations and ref_contributions attribute does not work for URL field </h2><br/><div style=\"overflow-x:auto\"><h2>Description</h2><div><p>The <span style=\"font-family: arial, helvetica, sans-serif;\"><em><strong>field_decorations</strong></em></span> and <span style=\"font-family: arial, helvetica, sans-serif;\"><em><strong>ref_contributions</strong></em></span> field attributes do not working for URL field. They work for string fields.</p></div><h2>Steps to Reproduce</h2><div> <p></p><p>1. Create a Macro UI. Name the macro "testURL" and add the following code:</p>\r\n<p><span style=\"font-family: arial, helvetica, sans-serif;\"><strong><?xml version="1.0" encoding="utf-8" ?></strong></span><br /><span style=\"font-family: arial, helvetica, sans-serif;\"><strong><j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"></strong></span><br /><span style=\"font-family: arial, helvetica, sans-serif;\"><strong><span>Testing</span></strong></span><br /><span style=\"font-family: arial, helvetica, sans-serif;\"><strong></j:jelly></strong></span></p>\r\n<p>2. Go to the incident form and create an URL field. Ensure the field is displayed in the incident form. <br />3. Go to the Dictionary and edit the url field, add the following attribute: <br />field_decorations=testURL<br />4. Save <br />5. Go to the incident table, the "Testing" word did not appear next to the URL field.</p>\r\n<p>Expected behavior<br />The "Testing" word (UI Macro) appears next to the URL field.</p>\r\n<p>Actual behavior <br />The "Testing" word did not appear next to the URL field. </p>\r\n<p>The same example works with string type fields. </p>\r\n<p> </p></div><h2>Workaround</h2><div><p>This request is considered an Enhancement Request. URL field type is not supported for field_decorations or ref_contributions. Only the following support this behavior: <span style=\"font-family: arial, helvetica, sans-serif;\"><em><strong>reference field, date, date_time, duration, boolean, choice, addon, time, phone number, number, and pick list. </strong></em></span></p></div><div><br /><strong>Related Problem: PRB1364916</strong></div></div>"}</script>