<?xml version="1.0" encoding="UTF-8" ?><!-- generator=Zoho Sites --><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><atom:link href="https://www.creatorscripts.com/blogs/tag/phone-format/feed" rel="self" type="application/rss+xml"/><title>Creator Scripts. - Zoho Blogs #Phone Format</title><description>Creator Scripts. - Zoho Blogs #Phone Format</description><link>https://www.creatorscripts.com/blogs/tag/phone-format</link><lastBuildDate>Sat, 28 Mar 2026 05:14:16 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[Update Phone Format (206) 800-1234 in Zoho Creator]]></title><link>https://www.creatorscripts.com/blogs/post/Update-Phone-Format-206-800-1234-in-Zoho-Creator</link><description><![CDATA[You can add the below script On Add On Validate or On Add On Success. Just replace the name of the input.Phone_additional field with the name of your ]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_IijoQ1P4QvOqhitYKXptJQ" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_nPihdnpzQQmSGIj2sgMfDw" data-element-type="row" class="zprow zprow-container zpalign-items- zpjustify-content- " data-equal-column=""><style type="text/css"></style><div data-element-id="elm_c-EB8IN9Q8iTIoviEI0iXg" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_coTBTvlrRFS_rRF2G-GbEw" data-element-type="text" class="zpelement zpelem-text "><style></style><div class="zptext zptext-align- " data-editor="true"><div><p><span></span></p><p style="margin-bottom:22px;"><font face="Georgia, Times, serif" size="3"><br></font></p><p style="margin-bottom:22px;"><font face="Georgia, Times, serif" size="3">You can add the below script On Add On Validate or On Add On Success. Just replace the name of the input.Phone_additional field with the name of your phone field in your zoho form.</font></p><div><font face="Georgia, Times, serif" size="3">//Update Phone format</font></div><div><font face="Georgia, Times, serif" size="3">if ((input.Phone_additional.getAlphaNumeric().length() != 10) &amp;&amp; (input.Phone_additional != &quot;&quot;))</font></div><div><font face="Georgia, Times, serif" size="3">{</font></div><div><font face="Georgia, Times, serif" size="3">errors = List:String();</font></div><div><font face="Georgia, Times, serif" size="3">errors.add(&quot;Phone Number is not a 10 digit number.&quot;);</font></div><div></div><div><font face="Georgia, Times, serif" size="3">}</font></div><div><font face="Georgia, Times, serif" size="3">else if ((input.Phone_additional != &quot;&quot;) &amp;&amp; (input.Phone_additional.getAlphaNumeric().length() == 10))</font></div><div><font face="Georgia, Times, serif" size="3">{</font></div><div><font face="Georgia, Times, serif" size="3">input.Phone_additional = thisapp.Update.PhoneFormat(input.Phone_additional);</font></div><div><font face="Georgia, Times, serif" size="3">}</font></div><div><font face="Georgia, Times, serif" size="3">else</font></div><div><font face="Georgia, Times, serif" size="3">{</font></div><p style="margin-bottom:22px;"><font face="Georgia, Times, serif" size="3">}</font></p><p style="margin-bottom:22px;"><font face="Georgia, Times, serif" size="3">The script above calls a function to update the Phone string. You can name your function the same as the one in this example so you can only copy &amp; paste the script. If you name your function differently just make sure to adjust the function name in your script as well.</font></p><p></p></div></div>
</div><div data-element-id="elm_PZ9E5NGdRe-9R4LwY78arA" data-element-type="button" class="zpelement zpelem-button "><style></style><div class="zpbutton-container zpbutton-align-center "><style type="text/css"></style><a class="zpbutton-wrapper zpbutton zpbutton-type-primary zpbutton-size-md zpbutton-style-none " href="http://zoholibrary.creatorscripts.com/p/deluge-scripts-library" target="_blank"><span class="zpbutton-content">Access Code</span></a></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Wed, 31 Jan 2018 07:40:10 -0600</pubDate></item></channel></rss>