<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>how to validate phonenumber with out using localvariable?</title><link>https://community.appian.com/discussions/f/general/25345/how-to-validate-phonenumber-with-out-using-localvariable</link><description>how to validate phonenumber with out using localvariable?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to validate phonenumber with out using localvariable?</title><link>https://community.appian.com/thread/98602?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 06:53:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:77178286-a47b-47bb-a4dd-3d2dedddaafb</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;If you are capturing the value, then to store the value, you will need to have a variable. It can be either a Rule input or a local variable.&amp;nbsp;&lt;br /&gt;If you are trying to validate an existing value, then you can do it without a variable.&lt;/p&gt;
&lt;p&gt;Both ways have multiple ways of doing it.&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Regex Match&lt;/li&gt;
&lt;li&gt;Specifying lower and upper bounds of the number (eg. 1111111-9999999)&lt;/li&gt;
&lt;li&gt;Check the length of the value&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to validate phonenumber with out using localvariable?</title><link>https://community.appian.com/thread/98592?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 06:30:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2bd35081-b4cf-4e39-ad0e-f76313b76b53</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!phoneNum,
  a!textField(
    label: &amp;quot;Phone Number&amp;quot;,
    value: local!phoneNum,
    saveInto: local!phoneNum,
    validations: if(
      regexmatch(
        &amp;quot;[0-9] [0-9]&amp;quot;, /*paste your regex here*/
        local!phoneNum /*Put local or ri variable name*/
      ),
      {},
      &amp;quot;Invalid Phone Number&amp;quot;
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The code to validate for phone number by using local variables. i dont think so we can achieve it without using local or ri variable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to validate phonenumber with out using localvariable?</title><link>https://community.appian.com/thread/98591?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 06:26:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08f28f10-35d3-4fc5-bc18-6133e86b9bf3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sorry, the validation of a phone number does not depend on using locals in any way.&lt;/p&gt;
&lt;p&gt;Please help me to understand your question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to validate phonenumber with out using localvariable?</title><link>https://community.appian.com/thread/98590?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 06:23:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ac0a02cf-d056-4f9a-b1d9-93bc30d931d2</guid><dc:creator>sowmyak2554</dc:creator><description>&lt;p&gt;i want to know both the ways to validate..&lt;/p&gt;
&lt;p&gt;could you give me an example for with and without using locals?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to validate phonenumber with out using localvariable?</title><link>https://community.appian.com/thread/98589?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 06:20:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:96f2e7c1-fa0e-467b-9d14-710c7c205e7c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What is this question about? Is there a specific reason to not use locals?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to validate phonenumber with out using localvariable?</title><link>https://community.appian.com/thread/98588?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2022 06:20:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2e9f90de-93f7-4dad-947d-92341ddfd1c2</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;In which variable you&amp;nbsp;stored your data?&amp;nbsp;It will be either local or RI variable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>