<?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>Submit button help</title><link>https://community.appian.com/discussions/f/user-interface/13565/submit-button-help</link><description>Hi, How can I have a submit button at the last page of my dynamic form? I am using local!page to determine the page. Currently, the buttons are a!buttonWidget and saves into my local variable. However, on the last page, I&amp;#39;d like a submit button that submits</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Submit button help</title><link>https://community.appian.com/thread/61589?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 15:26:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:16c8e25a-f189-4868-8766-506674af58c5</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;For simplicity&amp;#39;s sake I&amp;#39;d encourage you to use separate button components for &amp;quot;Next&amp;quot; and &amp;quot;Submit&amp;quot; buttons in your use case.&lt;br /&gt; &lt;br /&gt; Abbreviated, it would be something like this:&lt;br /&gt; &lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!buttonWidget(
  label: &amp;quot;Next&amp;quot;,
  ...
  showWhen: not(local!isOnLastPage)
),
a!buttonWidget(
  label: &amp;quot;Submit&amp;quot;,
  ...
  showWhen: local!isOnLastPage
)&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt; In this example, you can store a local variable local!isOnLastPage in such a way that it updates to a value of TRUE when the last page is reached. The benefit to doing it this way is, if you ever update the logic determining how the form tells when the last page is reached, you only need to update the local variable definition and not chase down individual components that used the logic separately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Submit button help</title><link>https://community.appian.com/thread/61577?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 11:12:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:90e4ec13-77a4-4598-a083-32bc1ea73f10</guid><dc:creator>erics171</dc:creator><description>Thanks, it worked. Really helped me understand buttons and how to make it dynamic in a page. If you have other suggestions of learning how to use buttons (perhaps other examples) please let me know.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Submit button help</title><link>https://community.appian.com/thread/61576?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 10:58:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:272192a7-0803-43ec-88fa-b798a2bd3695</guid><dc:creator>simples533</dc:creator><description>Hi There, &lt;br /&gt;
&lt;br /&gt;
If you already know what will be your final/last page number, try below code for button. &lt;br /&gt;
&lt;br /&gt;
  a!buttonWidget(&lt;br /&gt;
          label: if(local!page= &amp;quot;MaxValueOfPage(i.e=3)&amp;quot;,&amp;quot;Submit&amp;quot;,&amp;quot;Next&amp;quot;),&lt;br /&gt;
          submit: if(local!page= &amp;quot;MaxValueOfPage&amp;quot;,true(),false()),&lt;br /&gt;
          cancelbuttonlabel: &amp;quot;BACK&amp;quot;,&lt;br /&gt;
          value: if(local!page=&amp;quot;MaxValueOfPage&amp;quot;,&lt;br /&gt;
                    local!page ,&lt;br /&gt;
                    local!page + 1),&lt;br /&gt;
          saveInto: local!page,&lt;br /&gt;
          style: &amp;quot;PRIMARY&amp;quot;&lt;br /&gt;
        )&lt;br /&gt;
Regards,&lt;br /&gt;
Simple&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Submit button help</title><link>https://community.appian.com/thread/61574?ContentTypeID=1</link><pubDate>Mon, 15 Oct 2018 10:55:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e019673f-3fa8-42c5-b568-a5459fc70918</guid><dc:creator>Sachin</dc:creator><description>Hi &lt;a href="/members/erics171"&gt;erics171&lt;/a&gt; ,&lt;br /&gt;
 In the a!buttonWidget we have one parameter call &amp;quot;submit&amp;quot; which takes boolean value( default it is false ) which submits the form, in your case using local!page determine last page and make submit parameter as true&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Sachin&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>