<?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>Don´t save value if validation field triggers</title><link>https://community.appian.com/discussions/f/user-interface/22241/don-t-save-value-if-validation-field-triggers</link><description>So, i have a date that cannot be &amp;gt; than today(), so i have a validation field. But when I enter a wrong date, the validation field triggers but it saves the save value into my rule input. It is possible to don&amp;#180;t save the value if the validation field</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Don´t save value if validation field triggers</title><link>https://community.appian.com/thread/90706?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 18:53:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0011096f-8dd1-4362-9b63-b523ca2e5eed</guid><dc:creator>Akhil Sharma</dc:creator><description>&lt;p&gt;You can check the value before saving into any variables, like below,&lt;/p&gt;
&lt;p&gt;a!save(&lt;br /&gt; ri!date,&lt;br /&gt; if(save!value&amp;lt;today(),&lt;br /&gt; save!value,&lt;br /&gt; null)&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Don´t save value if validation field triggers</title><link>https://community.appian.com/thread/90699?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 15:00:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d193118-c70b-4c9d-ac04-f3495088236e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Not direclty, but if it&amp;#39;s really necessary you can always duplicate the Validation logic in your SaveInto and thus do pretty much whatever you want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Don´t save value if validation field triggers</title><link>https://community.appian.com/thread/90696?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 13:15:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0b52ce6-f95d-4930-9479-3c91b5cae368</guid><dc:creator>johnm744</dc:creator><description>&lt;p&gt;Hi Peter, now my question,&amp;nbsp; It&amp;#39;s posible to save the validations in a local!variable?&amp;nbsp; &amp;nbsp;thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Don´t save value if validation field triggers</title><link>https://community.appian.com/thread/87099?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 13:24:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5b55e15e-03f9-40ea-a02f-bf2eaacc5877</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Stefan is correct,&amp;nbsp;and to expand on this I don&amp;#39;t think you would even&amp;nbsp;&lt;em&gt;want&lt;/em&gt; the behavior you specified. Suppose that you altered your date field so that if the user entered a date greater than today it wouldn&amp;#39;t save. In that case they would enter a date, and then if it didn&amp;#39;t meet the criteria the data would disappear. It&amp;#39;s actually a good thing that the value saves so that the user can see the results and understand how to fix it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Don´t save value if validation field triggers</title><link>https://community.appian.com/thread/87095?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 11:44:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13f9cffc-d6fe-427e-8e5c-c7264b608f8a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;No. Validation is meant to&amp;nbsp;prevent the user from submitting the form.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>