<?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>Email Validation</title><link>https://community.appian.com/discussions/f/user-interface/29932/email-validation</link><description>Hi All, 
 How to validate an email address for users which are in same organization. If I am working in a abc organization and I want to validate that if users is not a part of an abc organization should show me invalid email address in textfield object</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Email Validation</title><link>https://community.appian.com/thread/118842?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 10:28:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d585000-2898-46f5-84fb-61903dd42ce4</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;A better way to do this would be to integrate with your company active directory and validate that the user is indeed valid and not just rely on the format.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Email Validation</title><link>https://community.appian.com/thread/118829?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 08:02:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f492819-233f-48f1-a4c9-0e5307421307</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Why do you need to parse email addresses to do this? In a normal environment, all members of your organization would have an Appian user account and you would know that !?!?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Email Validation</title><link>https://community.appian.com/thread/118828?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 07:39:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0f0690b3-5f6a-4a15-a86f-e8acbb057b68</guid><dc:creator>Ignacio Mor&amp;#225;n</dc:creator><description>&lt;p&gt;Hi Yash,&lt;/p&gt;
&lt;p&gt;you could use find() function, if it throws 0, then it is not in the text, if it throws any other position then it&amp;nbsp;is correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Check the next example:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!value:&amp;quot;ashf@asd.com&amp;quot;,
  local!value2: &amp;quot;ashf@abc.com&amp;quot;,
  {
a!textField(
  value: local!value,
  validations: if(find(&amp;quot;@abc.com&amp;quot;, local!value) &amp;lt;&amp;gt; 0,
  &amp;quot;&amp;quot;,
  &amp;quot;not correct email&amp;quot;
  )
),
a!textField(
  value: local!value2,
  validations: if(find(&amp;quot;@abc.com&amp;quot;, local!value2) &amp;lt;&amp;gt; 0,
  &amp;quot;&amp;quot;,
  &amp;quot;not correct email&amp;quot;
  )
),
}
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1694158798416v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Email Validation</title><link>https://community.appian.com/thread/118826?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 07:36:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7861364b-4bba-438e-90bd-62940c643107</guid><dc:creator>aryan</dc:creator><description>&lt;p&gt;You can create a regular expression and use regexmatch function to validate the email address.&lt;br /&gt;Example:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;regexmatch(
  concat(
    &amp;quot;^[A-Za-z0-9._%+-]+@&amp;quot;,
    /*your organisation domain*/ &amp;quot;abc&amp;quot;,
    &amp;quot;\.com$&amp;quot;
  ),
  &amp;quot;test.user@abc.com&amp;quot;
)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Use this validation in the textField to fulfil your requirement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>