<?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>Validation happening after starting the process on button click</title><link>https://community.appian.com/discussions/f/user-interface/17666/validation-happening-after-starting-the-process-on-button-click</link><description>I have process with start form and in that form I have rule which I needs to run on button click and if that rule returns true I need to display a Error message on the page and disable the button(not allow the process to start). I tried using the rule</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Validation happening after starting the process on button click</title><link>https://community.appian.com/thread/69644?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 15:33:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:02ca2e59-e3c8-41ab-a3d1-3a015ba4d1dd</guid><dc:creator>Varsha K R</dc:creator><description>&lt;p&gt;It didn&amp;#39;t work the way I wanted, but it could help if the parameters I am passing to the rule is changing. In my case, it was not evaluating the rule on button click. I don&amp;#39;t have the code to post but you can refer to the a!validationMessage documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation happening after starting the process on button click</title><link>https://community.appian.com/thread/69643?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 15:22:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0395eda-3e67-4b29-b3e7-ec02c621329b</guid><dc:creator>Ramnadh Srikanth Vemakoti</dc:creator><description>&lt;p&gt;Hi Varsha,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; We do have a similar requirement. Can you please post your sample code snippet , how you have achieved this will be helpful.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation happening after starting the process on button click</title><link>https://community.appian.com/thread/69573?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 16:32:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5798f2ff-0ce9-4df5-bfb2-243f34a3d029</guid><dc:creator>Varsha K R</dc:creator><description>&lt;p&gt;Thanks!! it works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation happening after starting the process on button click</title><link>https://community.appian.com/thread/69556?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 14:04:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21d6743b-cb13-4ed1-ab47-4aa0ec350618</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Did you happen to read the example code contained within the Appian Documentation page I linked above?&amp;nbsp; I&amp;nbsp;was figuring&amp;nbsp;it&amp;#39;s pretty self-explanatory.&amp;nbsp; If you have any subsequent questions then I&amp;#39;d actually suggest you post a code snippet and I can help you troubleshoot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation happening after starting the process on button click</title><link>https://community.appian.com/thread/69554?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 13:50:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:54e33404-0389-401f-879f-800c1bc0fa7f</guid><dc:creator>Varsha K R</dc:creator><description>&lt;p&gt;Can you please elaborate a bit more or Provide a code snippet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation happening after starting the process on button click</title><link>https://community.appian.com/thread/69553?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 13:47:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee0e7592-9ab1-4992-98f9-d6f39eff25d8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You can probably make use of the (sadly) lesser-known validation function, &lt;a href="https://docs.appian.com/suite/help/19.3/Validation_Message.html"&gt;a!validationMessage&lt;/a&gt;, using the &amp;quot;SUBMIT&amp;quot; setting for the&amp;nbsp;&lt;em&gt;validateAfter&lt;/em&gt; parameter.&amp;nbsp; This would go in a section-level and/or form-level validation, and should allow logic to be executed that would prevent the form from submitting and show your validation message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>