<?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>Conditionally Show Checkbox if there is validation triggered</title><link>https://community.appian.com/discussions/f/user-interface/21541/conditionally-show-checkbox-if-there-is-validation-triggered</link><description>Hi, 
 I need to show a check box in UI on click of Submit button, if there is a validation triggered on Submit. 
 The check box should not be visible otherwise. 
 If there is no validation getting triggered in UI then the form should just submit. 
 How</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Conditionally Show Checkbox if there is validation triggered</title><link>https://community.appian.com/thread/84201?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 15:39:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13f1802d-88bc-450a-a478-d5281ce7948a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I believe there&amp;#39;s no way to do this exactly as you&amp;#39;ve stated - you would need to either use Stefan&amp;#39;s approach of a 2-click process to first run a pre-validation then either submit or show the checkbox and submit, OR use Stewart&amp;#39;s approach of running live validation in the background as the form is filled and showing the checkbox BEFORE the user attempts to submit, when applicable.&amp;nbsp; Honestly this (latter) solution is far more user friendly, as you&amp;#39;re not surprising them with some &amp;quot;gotcha&amp;quot; extra requirement when they thought they were ready to submit.&lt;/p&gt;
&lt;p&gt;Also: remember that requirements don&amp;#39;t and can&amp;#39;t dictate design.&amp;nbsp; They&amp;#39;re two separate things.&amp;nbsp; Many product owners have no concept of this of course, but that doesn&amp;#39;t change the reality of it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditionally Show Checkbox if there is validation triggered</title><link>https://community.appian.com/thread/84198?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 15:08:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a17c271-bb31-43f3-bb33-83935fd595db</guid><dc:creator>best</dc:creator><description>&lt;p&gt;Yes we can do it when the form is being filled.&lt;/p&gt;
&lt;p&gt;But as per requirement, it has to happen in Submit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditionally Show Checkbox if there is validation triggered</title><link>https://community.appian.com/thread/84195?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 13:58:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:107f2139-729c-44d4-a5a8-e61ad3c09568</guid><dc:creator>Madhusudan Sharma</dc:creator><description>&lt;p&gt;When you say &amp;quot;&lt;span&gt;if there is a validation triggered on Submit&lt;/span&gt;&amp;quot;,&amp;nbsp;I assume you want to display a validation message only when a user submits the form, and if validation fails, you want to display a checkbox too. If this is the case, you can create an expression rule to validate the form&amp;#39;s data and simply return true/false. Use the same expression rule to control the visibility of the checkbox. For the validation message, utilize&amp;nbsp;&lt;span&gt;a!validationMessage() component. Here&amp;#39;s&amp;nbsp;the link to get more details:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.2/Validation_Message.html"&gt;https://docs.appian.com/...Validation_Message.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If your case is different and you have respective validations on your fields that&amp;nbsp;get triggered immediately upon the user&amp;#39;s input without clicking on the submit button, you can use these validation expressions to control the visibility of the checkbox.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditionally Show Checkbox if there is validation triggered</title><link>https://community.appian.com/thread/84192?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 13:38:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:163d3703-4710-44d4-8d17-503720c3cb4c</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Why not fire the validation whilst the form is being filled in (i.e. &lt;em&gt;not&lt;/em&gt; defer until the &amp;#39;Submit&amp;#39; button is selected)? That way the checkbox visibility can be fired by the same rule that is sued to conduct the visibility. And, in fact, the &amp;#39;Submit&amp;#39; button&amp;#39;s disabled status could also be controlled by the same rule, so it becomes very clear that you can&amp;#39;t Submit until you&amp;#39;ve addressed the condition that the validation rule is setting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditionally Show Checkbox if there is validation triggered</title><link>https://community.appian.com/thread/84191?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 13:31:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:872f8383-29a9-41f2-9163-41c213735082</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That&amp;#39;s tricky. The saveInto in a button will only trigger if all validations are OK.&lt;/p&gt;
&lt;p&gt;My suggestion would be to have a two-step submit. First show a button &amp;quot;Validate&amp;quot; and then the submit button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditionally Show Checkbox if there is validation triggered</title><link>https://community.appian.com/thread/84190?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 13:04:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9aa370be-d3dd-4806-b597-5f26392b7a3e</guid><dc:creator>zakarym0001</dc:creator><description>&lt;p class="p1"&gt;You could do something using a local variable as a counter.&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;Have an a!save in your submit that increments the local variable up one.&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;And on the checkbox have the showWhen be when the local variable is greater than zero&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditionally Show Checkbox if there is validation triggered</title><link>https://community.appian.com/thread/84188?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 13:00:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a5c58f14-7cb9-4861-8ddd-51de6a4dde3a</guid><dc:creator>best</dc:creator><description>&lt;p&gt;If there is no validation error in the form then the form should get submitted.&lt;/p&gt;
&lt;p&gt;If there is a validation getting triggered on the form on click of submit then I need to show a checkbox in the same form.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conditionally Show Checkbox if there is validation triggered</title><link>https://community.appian.com/thread/84187?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 12:54:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:72762cd8-3748-4f2c-a25e-8a5ec601efbb</guid><dc:creator>zakarym0001</dc:creator><description>&lt;p&gt;so the submit button doesn&amp;#39;t submit?&amp;nbsp; What&amp;#39;s the flow you&amp;#39;re going for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>