<?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/new-to-appian/27325/email-validation</link><description>Hi, 
 I would like to return an error if the user inputs some text instead of email. 
 I have the below regex and textField. Can someone guide me how to link these two to perform the required validation. 
 
 regexmatch( pattern: &amp;quot;^[A-Z0-9\&amp;#39;\+\&amp;amp;\%_-]+</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: email validation</title><link>https://community.appian.com/thread/107139?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 18:53:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b6e92cf-8aad-4bad-95c6-7021369c1567</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Like Mike I still strongly recommend using the regex or the people functions plugin.&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/107137?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 18:51:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:09435ecc-4b39-4e7c-b1e9-13c1ca0449d5</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;span class="ui-provider uj b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;I have modified little bit, not it is working as per my requirement. Thank you so much for your help.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="ui-provider uj b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;a!forEach(&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; items: {&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;email@example.com&amp;quot;,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;invalid.org&amp;quot;,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;missing.top.level@appian&amp;quot;,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;swapna@.&amp;quot;,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;swapna@a.c&amp;quot;&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; expression: like(&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fv!item,&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;?*@?*.?*&amp;quot;&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt; &amp;nbsp; )&lt;/span&gt;&lt;/span&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/107136?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 18:09:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11e8a1b7-abb0-4d73-bde2-6c156089529c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Additionally the People Functions plug-in has a built-in function now, &amp;quot;validateEmailAddress()&amp;quot;, which works at least as well as the Regex version you posted here originally (which looks like the one i&amp;#39;ve &lt;a href="/discussions/f/administration/7353/way-to-validate-email-addresses/29876#29876"&gt;posted in the past elsewhere&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Both People Functions and the RegEx plugin should be considered standard and non-controversial, so I&amp;#39;m unclear why you would want to / be required to avoid using them. Can you provide any more info on this?&lt;/p&gt;
&lt;p&gt;If push comes to shove, the old thread I linked above contains my &amp;quot;classic&amp;quot; OOB rule that does a pretty good job at validating an email address, but I personally recommend just using the RegEx or People Functions versions now, unless in an emergency.&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/107134?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 18:03:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:adbe57d1-9a46-487b-9623-1c3d7b18c328</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="170215" url="~/discussions/f/new-to-appian/27325/email-validation/107130#107130"]I don&amp;#39;t have Regular Expression Plug-in[/quote]
&lt;p&gt;It takes about 5 seconds to install.&amp;nbsp; Is there any reason you can&amp;#39;t?&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/107133?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 17:48:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f26d77cc-f4bb-4529-8e26-496ef8a4d140</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That would be a very simplified check.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!forEach(
  items: {
    &amp;quot;this.is.my.email@example.com&amp;quot;,
    &amp;quot;invalid.org&amp;quot;,
    &amp;quot;missing.top.level@appian&amp;quot;
  },
  expression: like(
    fv!item,
    &amp;quot;*@*.*&amp;quot;
  )
)&lt;/pre&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/107132?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 17:43:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d47fc03d-6db5-4b5b-9816-2a87478bbf9f</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Not only @ , dot. I have to check at least few characters between @ and dot and few characters before @.&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/107131?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 17:13:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3a74bac-dcd1-4a8d-aa82-2c4b03795aa3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Then install that plugin from the admin console.&lt;/p&gt;
&lt;p&gt;You can also do a more simple check. E.g. just check for the existence of a @ and a dot. This would not require any plugin.&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/107130?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 17:10:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f925ae35-2c9d-4883-b948-d57ac9f6f056</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;&lt;span&gt;I don&amp;#39;t have Regular Expression Plug-in, so not sure if I can use the pattern which I am talking.&lt;/span&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/107129?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 17:07:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d1a62ae6-6e84-4d0a-9959-64b10c467fb4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You put that regex into an expression rule and call this in the validations parameter of your text field.&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/107125?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 16:51:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc9b3ea4-bdbf-4120-ac4c-255a76f8d523</guid><dc:creator>swapnar6405</dc:creator><description>&lt;p&gt;Is there a way, I can link the&amp;nbsp;&lt;span&gt;regex and expression rule and perform email validation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regexmatch(&lt;br /&gt;&amp;nbsp; pattern: &amp;quot;^[A-Z0-9\'\+\&amp;amp;\%_-]+(\.{0,1}[A-Z0-9\'\+\&amp;amp;\%_-]+)*[@]{1}[A-Z0-9.-]*[A-Z0-9-]+[.]{1}[A-Z]{2,6}$&amp;quot;,&lt;br /&gt;&amp;nbsp; searchString: ri!employee.email,&lt;br /&gt;&amp;nbsp; regexFlags: &amp;quot;si&amp;quot;&lt;br /&gt;)&lt;/span&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/107123?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 15:26:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:57f65eba-fbd3-40d5-97ba-9aa6d926f82e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;In addition to what Stefan suggested: i would strongly suggest you encapsulate such basic functionality as email address validation into a reusable Expression Rule, rather than hardcoding it onto any interface.&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/107107?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 07:25:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4352e825-03e3-429e-9850-da6c7841a9d3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There is a recipe how to add validations. Check this:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/22.4/recipe-add-multiple-validation-rules-to-one-component.html"&gt;docs.appian.com/.../recipe-add-multiple-validation-rules-to-one-component.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>