<?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>Validations button specific</title><link>https://community.appian.com/discussions/f/user-interface/38483/validations-button-specific</link><description>I have a scenario where, if I click the &amp;quot;Reject&amp;quot; button, the comments field should be required and cannot be empty. If the &amp;quot;Approve&amp;quot; button is clicked, the comments field should be optional and be submitted. I have a ri! cancel input that changes to true</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Validations button specific</title><link>https://community.appian.com/thread/145170?ContentTypeID=1</link><pubDate>Sun, 09 Feb 2025 16:58:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c191312d-2452-4de5-9a45-b3df9f784f95</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Welcome back :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validations button specific</title><link>https://community.appian.com/thread/145167?ContentTypeID=1</link><pubDate>Sun, 09 Feb 2025 15:35:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:075ba062-31c3-4b29-a47e-b889c30d711a</guid><dc:creator>tanujd6440</dc:creator><description>&lt;p&gt;Thanks, everyone! The validation group works. It&amp;#39;s been over a year since I last worked with Appian, so I&amp;#39;m relearning and brushing up on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validations button specific</title><link>https://community.appian.com/thread/145162?ContentTypeID=1</link><pubDate>Sat, 08 Feb 2025 15:28:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b2eb6e53-0f2b-4cbb-a21c-6e360bfe7751</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;If you only have 1 required field, you could simply set validate to false on the approve button. Otherwise, if you have other required fields on your interface you could use validation groups like Stefan mentioned.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!action,
  local!otherField,
  local!comment,
  {
    a!textField(
      label: &amp;quot;Any other required Field&amp;quot;,
      value: local!otherField,
      saveInto: local!otherField,
      required: true
    ),
    a!textField(
      label: &amp;quot;Comment&amp;quot;,
      value: local!comment,
      saveInto: local!comment,
      required: true,
      validationGroup: &amp;quot;REJECT&amp;quot;
    ),
    a!buttonArrayLayout(
      buttons: {
        a!buttonWidget(
          label: &amp;quot;Reject&amp;quot;,
          style: &amp;quot;OUTLINE&amp;quot;,
          value: &amp;quot;REJECT&amp;quot;,
          saveInto: local!action,
          submit: true,
          validate: true,
          validationGroup: &amp;quot;REJECT&amp;quot;
        ),
        a!buttonWidget(
          label: &amp;quot;Approve&amp;quot;,
          style: &amp;quot;SOLID&amp;quot;,
          value: &amp;quot;APPROVE&amp;quot;,
          saveInto: local!action,
          submit: true,
          validate: true,
          validationGroup: &amp;quot;APPROVE&amp;quot;
        )
      }
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validations button specific</title><link>https://community.appian.com/thread/145159?ContentTypeID=1</link><pubDate>Sat, 08 Feb 2025 12:47:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:25fb1f42-7dc3-484e-94fc-7b2967ec13ce</guid><dc:creator>sarathkumar13</dc:creator><description>&lt;p&gt;As suggested by&amp;nbsp;&lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp;, take a look at the validation group parameter. Also, I am seeing that you are using ri!cancel for required parameter of comments field. Are you initializing the rule input cancel to be true anywhere? Otherwise it wont work, because the moment you click on cancel button, the form will complete and you wont be able to see the validation. You&amp;nbsp;have to&amp;nbsp;set validate parameter to true if you want validations to be shown&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validations button specific</title><link>https://community.appian.com/thread/145158?ContentTypeID=1</link><pubDate>Sat, 08 Feb 2025 12:30:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dfcecf64-1c22-4cc8-bcc8-ee50103487a4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you had a look at validation groups?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>