<?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>When invalid date is entered into a date field, value not resetting when saving {} to value</title><link>https://community.appian.com/discussions/f/user-interface/9634/when-invalid-date-is-entered-into-a-date-field-value-not-resetting-when-saving-to-value</link><description>When invalid date is entered into a date field, value not resetting when saving {} to value Text or non-compliant date entered e.g. ‘abc’ or ‘13/32/9999’ o Default validation fires correctly o When clicking reset button to save {} or ‘’ to the date variable</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: When invalid date is entered into a date field, value not resetting when saving {} to value</title><link>https://community.appian.com/thread/146575?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 21:22:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ed3cd5e1-ba4e-42e2-ab8a-afc87c59c380</guid><dc:creator>cindyl5142</dc:creator><description>&lt;p&gt;Hi Mike! I&amp;#39;m running into this issue and was wondering if there were any work arounds today....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When invalid date is entered into a date field, value not resetting when saving {} to value</title><link>https://community.appian.com/thread/42258?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 20:52:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40d41b8c-b786-4c07-ab29-d9726c13f8a4</guid><dc:creator>charlesa480</dc:creator><description>Gotcha thanks.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When invalid date is entered into a date field, value not resetting when saving {} to value</title><link>https://community.appian.com/thread/42257?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 19:49:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c5d376ca-1e15-4005-8e17-2e134dd5216f</guid><dc:creator>Josh</dc:creator><description>To echo what @mschmitt said, it looks like the date field component has some internal functionality where it will save and display the invalid value you entered (probably in a local variable) but null out the saveInto target you specified. This doesn&amp;#39;t leave us with much flexibility in handling your situation.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When invalid date is entered into a date field, value not resetting when saving {} to value</title><link>https://community.appian.com/thread/42256?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 18:49:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3700ca17-c43b-43e9-8fbc-92d7c1d76ab6</guid><dc:creator>Mike Schmitt</dc:creator><description>I don&amp;#39;t believe the a!dateField actually saves any value into the destination variable when an invalid input is entered.  You can test this for yourself pretty easily by adding a read-only a!textField just after your date fields and populate it with the value of one of the destination variables.&lt;br /&gt;Assuming i&amp;#39;m right, i&amp;#39;m not sure what the solution would be considering that the reset button would have nothing to reset in this case.  It might just need to be chalked up to a training issue.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When invalid date is entered into a date field, value not resetting when saving {} to value</title><link>https://community.appian.com/thread/42253?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 16:06:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9096e450-a1f9-47da-b6b8-6c38fed5133c</guid><dc:creator>charlesa480</dc:creator><description>It&amp;#39;s a local var. &lt;br /&gt;Button is not a submit type.&lt;br /&gt;Saving &amp;#39;&amp;#39;, {}, or null has the same result.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When invalid date is entered into a date field, value not resetting when saving {} to value</title><link>https://community.appian.com/thread/42252?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 15:44:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42e17861-d2a2-48f0-940b-ee27bb55f54e</guid><dc:creator>PhilB</dc:creator><description>This might be a stupid question, but have you tried saving null to the variable? {} is an empty array and &amp;#39;&amp;#39; is actually an empty string...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When invalid date is entered into a date field, value not resetting when saving {} to value</title><link>https://community.appian.com/thread/42250?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 13:57:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:734962e0-83fa-4d07-a23e-6d5d01e8681e</guid><dc:creator>aloks0189</dc:creator><description>I am sorry there is a typo mistake, it&amp;#39;s label not, lebel, avoid any typo mistake, if there are any&lt;br /&gt;&lt;br /&gt;Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When invalid date is entered into a date field, value not resetting when saving {} to value</title><link>https://community.appian.com/thread/42249?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 13:43:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5efdb484-4c23-41d3-8535-ad69cf79135d</guid><dc:creator>aloks0189</dc:creator><description>@charles I think there might be something incorrect in configuration, try following&lt;br /&gt;&lt;br /&gt;Assume the rule input which holds the entered date value is ri!dateValue , so you could something as below&lt;br /&gt;&lt;br /&gt;a!dateField(&lt;br /&gt;lebel: &amp;quot;Enter Date&amp;quot;,&lt;br /&gt;value: ri!dateValue,&lt;br /&gt;saveInto: ri!dateValue&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;Now for button write as below&lt;br /&gt;&lt;br /&gt;a!buttonWidget(&lt;br /&gt;label: &amp;quot;Reset&amp;quot;,&lt;br /&gt;saveInto: {&lt;br /&gt;a!save(ri!dateValue, null)&lt;br /&gt;}&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;Make sure, this button is not a!buttonWidgetSubmit() instead it is a!buttonWidget which doesn&amp;#39;t allow form submission by default, as the value for submit parameter is set to false&lt;br /&gt;&lt;br /&gt;Hope this will help you&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>