<?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 band the validation with the button</title><link>https://community.appian.com/discussions/f/user-interface/39502/how-to-band-the-validation-with-the-button</link><description>There are two button in my form, one is submit another is cancel. I have many validations in my form, but I notice that, the validations are applied to both buttons. I&amp;#39;ve also tried the validation group, but the behavior is after I click the button the</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to band the validation with the button</title><link>https://community.appian.com/thread/150273?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 14:37:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1788b03-b4fa-47d7-aa55-b96dd48eb23e</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="299046" url="~/discussions/f/user-interface/39502/how-to-band-the-validation-with-the-button/150241"]This approach means validations remain dormant until Submit is pressed.&lt;br /&gt;[/quote]
&lt;p&gt;Be cautious, though, because adding a Validation Group to a field (still(!!!)) hides its &amp;quot;required&amp;quot; indicator, and there is still(!) no manual workaround for this that I know of.&amp;nbsp; Due to this I usually avoid validation groups altogether except in very small, niche, unusual cases where it&amp;#39;s a better approach than other options (like conditionally disabling buttons, etc).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to band the validation with the button</title><link>https://community.appian.com/thread/150251?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 05:05:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b44860b-b5f1-4291-a8d3-049e43dbd08d</guid><dc:creator>Peon</dc:creator><description>&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to band the validation with the button</title><link>https://community.appian.com/thread/150250?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 05:05:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:89fb0071-47f0-47d4-a1f2-68fdb83828b2</guid><dc:creator>Peon</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to band the validation with the button</title><link>https://community.appian.com/thread/150241?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 04:20:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18c30e0e-daab-4583-9ad6-0112cbaabfd6</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;The Cancel button issue occurs when its validate property is set to true - switch this to false to prevent validations from firing. To ensure validations only execute when Submit is clicked, assign a validationGroup property to your Submit button, then apply this identical group name to every field requiring validation. &lt;br /&gt;This approach means validations remain dormant until Submit is pressed.&lt;br /&gt; Regarding disabling the Submit button after validation triggers - this isn&amp;#39;t feasible with validationGroup since the button must remain clickable to actually fire those validations in the first place.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to band the validation with the button</title><link>https://community.appian.com/thread/150240?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 04:15:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba08ac80-142e-4a4e-9965-2866718afa7f</guid><dc:creator>Harsha Sharma</dc:creator><description>[quote userid="284523" url="~/discussions/f/user-interface/39502/how-to-band-the-validation-with-the-button"]the validations are&amp;nbsp;&lt;span&gt;applied to both buttons&lt;/span&gt;[/quote]
&lt;p&gt;you might have validate set to true for Cancel button also. You should turn it to false.&amp;nbsp;&lt;/p&gt;
[quote userid="284523" url="~/discussions/f/user-interface/39502/how-to-band-the-validation-with-the-button"]Is this possible in Appian?[/quote]
&lt;p&gt;Yes it is! To achieve this set a validation group in the submit button widget e.g. &amp;ldquo;submitValidate&amp;rdquo; . Next add the same validation group in all the fields you want to validate after submit button click. Like if you have a textfield it should have validation group set with same value &amp;ldquo;submitValidate&amp;rdquo;.&lt;/p&gt;
[quote userid="284523" url="~/discussions/f/user-interface/39502/how-to-band-the-validation-with-the-button"]If the validation group is the only way I can achieve,&amp;nbsp;Is it possible to disable the submit button after the&amp;nbsp;validation triggered?[/quote]
&lt;p&gt;No its not! And if you are validating your form on this button click it should be enabled as well so that users clicks on it and validations are performed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>