<?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>Hi All, I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (F</title><link>https://community.appian.com/discussions/f/user-interface/6410/hi-all-i-have-2-a-buttonwidgetsubmit-button1-button2-and-1-text-field-f</link><description>Hi All, I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (Field1) in my form. In my use case, if Button1 is clicked and Field1 is blank I need to display validation message at the end of form just above button. For this I am using validations</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hi All,&lt;br /&gt;I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (F</title><link>https://community.appian.com/thread/25076?ContentTypeID=1</link><pubDate>Sat, 28 Nov 2015 08:30:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79068e20-c822-429b-af86-a4cd366c07f4</guid><dc:creator>adrianf</dc:creator><description>It seems that you only want the validation to appear for a certain button, but not another. If that&amp;#39;s the case you may want to look into the concept of validationGroups. If a button and a formlayout (or a section layout etc) are in the same validation group, the validation will only be in effect on that particular button press. You will also have to set the other button to a different validation group&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,&lt;br /&gt;I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (F</title><link>https://community.appian.com/thread/25061?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 12:39:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab69e310-5abb-4a40-bf32-15610439beb7</guid><dc:creator>Ram</dc:creator><description>Hi upendram803,&lt;br /&gt;&lt;br /&gt;Prepopulate the text variable with &amp;quot;null&amp;quot; and boolean variable with &amp;quot;true&amp;quot; in the user input task which is used in your process model and pass the created activity class variable i.e the text variable and boolean variable as rule inputs to the rule which you created, please check the below screenshot.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/6866.Screenshot.png"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/6866.Screenshot.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,&lt;br /&gt;I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (F</title><link>https://community.appian.com/thread/25060?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 12:18:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:af47c08d-71cd-48f7-8db5-b12e4e6b4d91</guid><dc:creator>Rahul Gundu</dc:creator><description>Try the below code. If the value of the button input type is Boolean then it&amp;#39;s working as per our desire otherwise not.  &lt;br /&gt;/*&lt;br /&gt;ri!buttonAction(Boolean)&lt;br /&gt;ri!textValue(Text)&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;a!formLayout(&lt;br /&gt;  firstColumnContents:{&lt;br /&gt;    a!textField(&lt;br /&gt;      label:&amp;quot;A&amp;quot;,&lt;br /&gt;      value:ri!textValue,&lt;br /&gt;      saveInto:ri!textValue&lt;br /&gt;    )&lt;br /&gt;  },&lt;br /&gt;  buttons:a!buttonLayout(&lt;br /&gt;    primaryButtons:{&lt;br /&gt;      a!buttonWidgetSubmit(&lt;br /&gt;      label:&amp;quot;Submit&amp;quot;,&lt;br /&gt;      value:true,&lt;br /&gt;      saveInto:ri!buttonAction&lt;br /&gt;    )&lt;br /&gt;    }&lt;br /&gt;  ),&lt;br /&gt;  validations:a!validationMessage(&lt;br /&gt;    message:if(&lt;br /&gt;     and(rule!APN_isEmpty(ri!textValue),ri!buttonAction),&lt;br /&gt;     &amp;quot;Message&amp;quot;,&lt;br /&gt;     null&lt;br /&gt;   ),&lt;br /&gt;   validateAfter:&amp;quot;SUBMIT&amp;quot;&lt;br /&gt;  )&lt;br /&gt;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,&lt;br /&gt;I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (F</title><link>https://community.appian.com/thread/25059?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 11:54:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dfe5c16e-dab4-4190-8cd9-92a723182987</guid><dc:creator>upendram803</dc:creator><description>Hi akkramanir,&lt;br /&gt;It works only on interface, Task is getting submitted while tried putting this rule in form.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,&lt;br /&gt;I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (F</title><link>https://community.appian.com/thread/25057?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 11:27:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:759728bd-34fc-48b8-b1f8-2464de2360da</guid><dc:creator>Ram</dc:creator><description>Hi upendram803,&lt;br /&gt;Please find the attached document contains the requested solution. Let me know if you have any issues.&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/13/5074.Sample-code.txt"&gt;Sample code.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,&lt;br /&gt;I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (F</title><link>https://community.appian.com/thread/25056?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 09:27:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1be9ba0c-190d-45dd-be77-f050e657338b</guid><dc:creator>upendram803</dc:creator><description>Thanks for reply Sonal !!&lt;br /&gt;i want form validation means validation message at the bottom of the form just above button not on field. I tried that validation group also but ri!btnAction = &amp;quot;Button1&amp;quot; condn. not being checked, hence form is submitting. Is there any way to validate based on button value after clicking any of the button. Thanks !!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,&lt;br /&gt;I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (F</title><link>https://community.appian.com/thread/25052?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 02:49:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f0e74894-ec03-482b-a31c-e02e1c12e2bc</guid><dc:creator>sonalk</dc:creator><description>Also in the code snippet that you have shared the comma is placed twice after the and function. Please check once after correcting the syntax.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi All,&lt;br /&gt;I have 2 a!buttonWidgetSubmit (Button1,Button2) and 1 text field (F</title><link>https://community.appian.com/thread/25051?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 02:44:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6829753-9793-4e31-bf96-81d8cd3c7941</guid><dc:creator>sonalk</dc:creator><description>Hi Upendra,&lt;br /&gt;The validations attribute works for field and is than associated to the validation groups. Configure the button to be a part of the same validation group. Please check the example from the forum link below:&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/7.11/SAIL_Design.html#Adding_Validation_to_Button_Components_using_Validation_Groups"&gt;forum.appian.com/.../SAIL_Design.html&lt;/a&gt;&lt;br /&gt;Hope it helps!&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>