<?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>Button Configurations</title><link>https://community.appian.com/discussions/f/new-to-appian/28412/button-configurations</link><description>Hi Community Team 
 I have a query, I need to configure the formlayout buttons. Like Approve and Reject 
 1. When I click on a Submit button first time, a textfield needs to be populated. It is populated then I click on the submit second time, It Needs</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Button Configurations</title><link>https://community.appian.com/thread/111393?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2023 05:33:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6dd3466d-c85e-42cc-857f-2286d5144746</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/chandrasekharr5247"&gt;Chandrasekhar Reddy&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;try the below code So, you will know how the submit parameter works in buttonwidget()&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!map: a!map(name: &amp;quot;&amp;quot;, email: &amp;quot;&amp;quot;, comment: &amp;quot;&amp;quot;),
  local!submit: false(),
  local!showWhen: true(),
  {
    a!columnsLayout(
      columns: {
        a!columnLayout(
          contents: {
            a!textField(
              label: &amp;quot;Name&amp;quot;,
              value: local!map.name,
              saveInto: local!map.name
            ),
            a!textField(
              label: &amp;quot;Email&amp;quot;,
              value: local!map.email,
              saveInto: local!map.email
            )
          },
          showWhen: local!showWhen
        ),
        a!columnLayout(
          contents: {
            a!paragraphField(
              label: &amp;quot;Comments&amp;quot;,
              value: local!map.comment,
              saveInto: local!map.comment
            )
          },
          showWhen: not(local!showWhen)
        ),
        a!columnLayout()
      }
    ),
    a!buttonLayout(
      primaryButtons: {
        a!buttonWidget(
          label: if(local!submit, &amp;quot;Approve&amp;quot;, &amp;quot;Submit&amp;quot;),
          saveInto: {
            a!save(local!showWhen, false()),
            a!save(local!submit, true())
          },
          submit: local!submit,
          style: &amp;quot;PRIMARY&amp;quot;
        ),
        
      },
      secondaryButtons: {
        a!buttonWidget(
          label: if(local!submit, &amp;quot;Reject&amp;quot;, &amp;quot;cancel&amp;quot;),
          saveInto: {
            a!save(local!showWhen, false()),
            a!save(local!submit, true())
          },
          submit: local!submit,
          style: &amp;quot;SECONDARY&amp;quot;
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button Configurations</title><link>https://community.appian.com/thread/111374?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 18:18:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1df88a4d-cffa-4a9a-b554-3be6eac582d4</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="153125" url="~/discussions/f/new-to-appian/28412/button-configurations/111373#111373"]can you share the code for the reference[/quote]
&lt;p&gt;The buttonWidget() component has a parameter called &amp;quot;submit&amp;quot;, which accepts a boolean value (true or false).&amp;nbsp; If it&amp;#39;s set to false, the form/task will not submit upon click of the button, while any saves in its saveInto parameter will execute.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button Configurations</title><link>https://community.appian.com/thread/111373?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 18:16:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5b173f1c-610c-46b8-b121-307960dc0b6f</guid><dc:creator>chandrasekharr5247</dc:creator><description>&lt;p&gt;Hi JayaPrakash, I really appreciate your approach.. My first idea is to implement like yours.. When I click on&amp;nbsp; &lt;strong&gt;submit&amp;nbsp;Textfield is not populated&amp;nbsp;&lt;/strong&gt; my form was submitted and then action is completed. Later, I realized to go with the radio buttons, it is one of the possible way to solve my approach.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not familiar and not aware with initial Submit and secondary submit.&amp;nbsp;Could you please explain how it works.. and can you share the code for the reference.. it really helps everyone who wants to solve this kind of approaches in future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button Configurations</title><link>https://community.appian.com/thread/111372?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2023 18:06:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9da68fa-30d2-4c00-aaab-02e8281edcd9</guid><dc:creator>chandrasekharr5247</dc:creator><description>&lt;p&gt;I agree with you, It&amp;#39;s a good practice to use radio buttons to achieve my user story. I realized lately.. I applied the same approach on the previous day.&amp;nbsp; By applying &lt;strong&gt;showWhen&amp;nbsp;&lt;/strong&gt; to my textfields (true / false ).. When I click on Approve a textfield which is &lt;strong&gt;true&amp;nbsp;&lt;/strong&gt;&amp;nbsp;will appear to fill it up, similarly for the Reject a textfield (&lt;strong&gt;false&lt;/strong&gt;).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button Configurations</title><link>https://community.appian.com/thread/111248?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 09:53:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5cbb6259-7231-4d77-8d23-1758223c4d84</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;Try in the button Widget keep the submit as false for initial submit and make true for secondary submit so that you can achieve this.&lt;/p&gt;
&lt;p&gt;And in same way implement for cancel as well&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button Configurations</title><link>https://community.appian.com/thread/111239?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 08:45:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75cfed65-f687-4593-a51c-1d8990468cd0</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Why do you want to populate a textfield on click of Submit or Cancel buttons.&lt;/p&gt;
&lt;p&gt;The better UI/UX approach for your use case is to give user a checkbox field in the form to accept or reject the request and side by side show a mandatory text/paragraph field for&amp;nbsp;the comments that user&amp;nbsp;have to add. Then on Submit save those values in the DB using WDSE node in process model.&lt;/p&gt;
&lt;p&gt;&lt;img height="70" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1681900177605v1.png" width="243" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button Configurations</title><link>https://community.appian.com/thread/111238?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 08:38:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6081c52b-f470-4eb5-a017-832e71d18b76</guid><dc:creator>aditya007</dc:creator><description>&lt;p&gt;Here, you need to create a new button which will display the textFields, once you have data in this particular field, start displaying the next button which will store these detail in database.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note: Use Show when condition for 2 different buttons .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>