<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 `sys_ui_macro` with name as `element_ph_number` and XML as below</span></li></ul>\r\n<pre class=\"language-markup\"><code><?xml version="1.0" encoding="utf-8" ?>\r\n<j:jelly trim="true" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">\r\n<j2:if test="$[jvar_can_write]">\r\n<g:evaluate var="jvar_format_phone">\r\n\t\t\tvar formatPhone = "";\r\n<j:set var="jvar_want_phone_format" value="${gs.getProperty('glide.ui.format_phone',true)}" />\r\n<j:if test="${jvar_want_phone_format}">\r\n\t\t\t\tformatPhone = "formatPhone(this)";\r\n</j:if>\r\n\t\t\tformatPhone;\r\n</g:evaluate>\r\n<input autocomplete="off" id="${ref}" NAME="${ref}" class="form-control phone-number" style= "$[jvar_add_fieldstyle]"\r\n\t\t\tvalue="$[NG:__ref__.getDisplayValue()]" onchange="onChange('${ref}');${jvar_format_phone};telemetryForRecordUpdate('${jvar_element}');" aria-required="$[jvar_aria_required]" />\r\n</j2:if>\r\n<j2:if test="$[jvar_can_write == false]">\r\n<g:inline template="html_readonly.xml" />\r\n</j2:if>\r\n<j:set var="jvar_element_row_addon" value="ref_contributions.xml"/>\r\n</j:jelly></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>