<script custom-tag="" type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"User Mobile number is showing in US format while opening the form after Yokohama upgrade","image":"http://support.servicenow.com/29f1d2661baf6010cafa53d8624bcb43.iix","author":{"name":"ServiceNow Support","url":"http://support.servicenow.com/now"},"keywords":"ServiceNow, NowSupport public Knowledge Base articles, Support and Troubleshooting,KB2054762,phone_number_format_US_user_record_save","wordcount":"142","publisher":"ServiceNow","url":"https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2054762","datePublished":"2025-04-11","dateCreated":"2025-04-11","dateModified":"2025-04-14","description":"<h2>User Mobile number is showing in US format while opening the form after Yokohama upgrade</h2><br/><div style=\"overflow-x:auto\"><article><div ><h3 >Issue </h3><section><ul style=\"list-style-positio","articleBody":"<h2>User Mobile number is showing in US format while opening the form after Yokohama upgrade</h2><br/><div style=\"overflow-x:auto\"><article><div ><h3 >Issue </h3><section><ul style=\"list-style-position: inside;\"><li style=\"font-size: 10pt;\"><span style=\"font-size: 10pt;\">Phone number type fields on Sys_user record is retaining the value to US format when saving the records with value having no format.</span></li></ul></section></div><div ><h3 >Release</h3><section><ul style=\"list-style-position: inside;\"><li style=\"font-size: 10pt;\"><span style=\"font-size: 10pt;\">Yokohama and above</span></li></ul></section></div><div ><h3 >Resolution</h3><section><ul style=\"list-style-position: inside;\"><li style=\"font-size: 10pt;\"><span style=\"font-size: 10pt;\">Create a &#96;sys_ui_macro&#96; with name as &#96;element_ph_number&#96; and XML as below</span></li></ul>\r\n<pre class=\"language-markup\"><code>&lt;?xml version&#61;&#34;1.0&#34; encoding&#61;&#34;utf-8&#34; ?&gt;\r\n&lt;j:jelly trim&#61;&#34;true&#34; xmlns:j&#61;&#34;jelly:core&#34; xmlns:g&#61;&#34;glide&#34; xmlns:j2&#61;&#34;null&#34; xmlns:g2&#61;&#34;null&#34;&gt;\r\n&lt;j2:if test&#61;&#34;$[jvar_can_write]&#34;&gt;\r\n&lt;g:evaluate var&#61;&#34;jvar_format_phone&#34;&gt;\r\n\t\t\tvar formatPhone &#61; &#34;&#34;;\r\n&lt;j:set var&#61;&#34;jvar_want_phone_format&#34; value&#61;&#34;${gs.getProperty(&#39;glide.ui.format_phone&#39;,true)}&#34; /&gt;\r\n&lt;j:if test&#61;&#34;${jvar_want_phone_format}&#34;&gt;\r\n\t\t\t\tformatPhone &#61; &#34;formatPhone(this)&#34;;\r\n&lt;/j:if&gt;\r\n\t\t\tformatPhone;\r\n&lt;/g:evaluate&gt;\r\n&lt;input autocomplete&#61;&#34;off&#34; id&#61;&#34;${ref}&#34; NAME&#61;&#34;${ref}&#34; class&#61;&#34;form-control phone-number&#34; style&#61; &#34;$[jvar_add_fieldstyle]&#34;\r\n\t\t\tvalue&#61;&#34;$[NG:__ref__.getDisplayValue()]&#34; onchange&#61;&#34;onChange(&#39;${ref}&#39;);${jvar_format_phone};telemetryForRecordUpdate(&#39;${jvar_element}&#39;);&#34; aria-required&#61;&#34;$[jvar_aria_required]&#34; /&gt;\r\n&lt;/j2:if&gt;\r\n&lt;j2:if test&#61;&#34;$[jvar_can_write &#61;&#61; false]&#34;&gt;\r\n&lt;g:inline template&#61;&#34;html_readonly.xml&#34; /&gt;\r\n&lt;/j2:if&gt;\r\n&lt;j:set var&#61;&#34;jvar_element_row_addon&#34; value&#61;&#34;ref_contributions.xml&#34;/&gt;\r\n&lt;/j:jelly&gt;</code></pre>\r\n<p> </p>\r\n<ul style=\"list-style-position: inside;\"><li style=\"font-size: 10pt;\"><span style=\"font-size: 10pt;\">Set the property : glide.ui.format_phone value to false on the instance</span></li></ul></section></div><div ><h3 >Related Links</h3><section><ul style=\"list-style-position: inside;\"><li style=\"font-size: 10pt;\"><span style=\"font-size: 10pt;\">CSTASK1066828</span></li><li style=\"font-size: 10pt;\"><span style=\"font-size: 10pt;\">PRB1809507</span></li></ul></section></div></article></div>"}</script>
  Loading...