<?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>new save button on user input form</title><link>https://community.appian.com/discussions/f/user-interface/17180/new-save-button-on-user-input-form</link><description>Hi, any one can help me on i want to add new save button apart from save draft option, disabling this auto save draft function keep a new save button until i submit form that user input form data must be draft into the form</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: new save button on user input form</title><link>https://community.appian.com/thread/67771?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 06:58:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b8d4c6b-9a91-4e87-bbfa-8bbd498c3c22</guid><dc:creator>ankitab0001</dc:creator><description>&lt;p&gt;If you are satisfied with my answers, I&amp;#39;d really appreciate if you can mark them as &amp;quot;verified&amp;quot;. TIA&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: new save button on user input form</title><link>https://community.appian.com/thread/67770?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 06:56:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab397372-2234-47b9-9efb-e062a4d12955</guid><dc:creator>ankitab0001</dc:creator><description>&lt;p&gt;Your ri!param1 seems to be a cdt. You can&amp;#39;t save boolean value in a cdt. Try something like this:&lt;pre class="ui-code" data-mode="text"&gt;a!buttonWidget(
label: &amp;quot;save&amp;quot;,
confirmbuttonlabel: &amp;quot;data saved&amp;quot;,
cancelbuttonlabel: &amp;quot;data saved&amp;quot;,
value: false(),
saveinto: {ri!isSave,
a!save(ri!Param1.status, &amp;quot;Draft&amp;quot;)
},
submit: false(),
style: &amp;quot;SECONDARY&amp;quot;,
validate: false
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;ri!isSave is optional depending if you want to use that variable somewhere else. Also, if you are saving a boolean value in a variable, try to name that variable that starts with &amp;quot;is&amp;quot;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: new save button on user input form</title><link>https://community.appian.com/thread/67769?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 06:43:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e224119b-c3b7-459c-aff7-e6094a051325</guid><dc:creator>shivam0001</dc:creator><description>&lt;p&gt;insted of text i have given boolen false&lt;/p&gt;
&lt;p&gt;buttons: a!buttonLayout(&lt;br /&gt; primaryButtons: {&lt;br /&gt; a!buttonWidget(&lt;br /&gt; label: &amp;quot;Submit&amp;quot;,&lt;br /&gt; submit: true,&lt;br /&gt; style: &amp;quot;PRIMARY&amp;quot;&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; secondaryButtons: {&lt;br /&gt; a!buttonWidget(&lt;br /&gt; label: &amp;quot;save&amp;quot;,&lt;br /&gt; confirmbuttonlabel: &amp;quot;data saved&amp;quot;,&lt;br /&gt; cancelbuttonlabel: &amp;quot;data saved&amp;quot;,&lt;br /&gt; value: false(),&lt;br /&gt; saveinto: ri!Param1,&lt;br /&gt; submit: false(),&lt;br /&gt; style: &amp;quot;SECONDARY&amp;quot;,&lt;br /&gt; validate: false&lt;br /&gt; )&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but result is&amp;nbsp;&lt;/p&gt;
&lt;div class="SideBySideGroup---side_by_side SideBySideGroup---default_direction SideBySideGroup---middle"&gt;
&lt;div class="SideBySideItem---flex_item SideBySideItem---default_direction appian-context-last-in-list"&gt;
&lt;div class=""&gt;
&lt;h4 class="HeaderText---richtext_header HeaderText---align_start"&gt;An Error Has Occurred&lt;/h4&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p class="ParagraphText---richtext_paragraph ParagraphText---default_direction ParagraphText---align_start elements---global_p"&gt;Expression evaluation error [evaluation ID = CR1I1MIU] in rule &amp;#39;lv_employeeinputs&amp;#39; at function a!buttonWidget [line 68]: An error occurred while executing a save: Could not cast from Boolean to LV_levCDT. Details: CastInvalid&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: new save button on user input form</title><link>https://community.appian.com/thread/67768?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 06:28:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5172e31c-af48-4c24-9693-e8a9accb499a</guid><dc:creator>shivam0001</dc:creator><description>&lt;p&gt;Thanks Ankita&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: new save button on user input form</title><link>https://community.appian.com/thread/67767?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 06:20:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2d9e244c-0351-4f97-b07f-1a425138b354</guid><dc:creator>ankitab0001</dc:creator><description>&lt;p&gt;I wouldn&amp;#39;t suggest buttonAction in the cdt as it&amp;#39;s primarily used for defining the course of action. But it depends what your requirement is. Say you wannna store the status value in the cdt, you can store it as &amp;quot;DRAFT&amp;quot; when clicked on &amp;quot;Save&amp;quot; and &amp;quot;Confirmed/Initiated/Requested&amp;quot; when clicked on &amp;quot;Submit&amp;quot;.&amp;nbsp; Also, If you need to store that data in DB, I would suggest to call the a!writeToDataStoreEntity() in the saveInto of the &amp;quot;save&amp;quot; button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: new save button on user input form</title><link>https://community.appian.com/thread/67766?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 06:15:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6654ccc-a068-419b-a121-53cd91deeb62</guid><dc:creator>shivam0001</dc:creator><description>&lt;p&gt;I have maintained CDT for all user inputs, for the save button should i add any new into CDT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: new save button on user input form</title><link>https://community.appian.com/thread/67765?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 06:13:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:84eeb281-0c9a-4250-abf1-11956389b2a3</guid><dc:creator>ankitab0001</dc:creator><description>&lt;p&gt;You don&amp;#39;t need to. You can use the same pv that you are using for submit given that it&amp;#39;s a text parameter. Just save a different value when clicked &amp;quot;save&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: new save button on user input form</title><link>https://community.appian.com/thread/67764?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 06:09:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e0c1a01a-25b2-431b-8b37-a0a15740580e</guid><dc:creator>shivam0001</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;ankitab0001, but here should a maintain new PV?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: new save button on user input form</title><link>https://community.appian.com/thread/67760?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 02:26:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c25ced2-ca3c-49b5-b081-f660f81f4cc7</guid><dc:creator>ankitab0001</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/shivam0001"&gt;shivam0001&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can have a&amp;nbsp;a!buttonWidget() . If you don&amp;#39;t wanna submit the form, configure the parameter &amp;quot;submit&amp;quot; as false. Make sure you are saving all the cdt values in their respective fields&lt;pre class="ui-code" data-mode="text"&gt;{
  a!sectionLayout(
    label:&amp;quot;Form&amp;quot;,
    contents: {
      a!textField(
        label:&amp;quot;Name&amp;quot;,
        value:ri!name,
        saveInto: ri!name
      ),
      a!integerField(
        label:&amp;quot;Employee Number&amp;quot;,
        value: ri!empNo,
        saveInto: ri!empNo
      )
    }
  ),
  a!buttonLayout(
    secondaryButtons:  a!buttonWidget(
      label:&amp;quot;Save&amp;quot;,
      style:&amp;quot;SECONDARY&amp;quot;,
      submit:false(),
      value:&amp;quot;save&amp;quot;,
      saveInto: {
        ri!buttonAction
      }
    )
  )
}

&lt;/pre&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>