<?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>Validation on required fields</title><link>https://community.appian.com/discussions/f/general/13915/validation-on-required-fields</link><description>Hi, 
 I am trying to achieve default highlighting of empty required fields on interface load, without the need of additional user interaction, while the submit button should skip all of those validations. 
 Using the required function is not possible</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Validation on required fields</title><link>https://community.appian.com/thread/63164?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 22:43:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb855d2b-9942-4277-a82e-66577ca55769</guid><dc:creator>aloks0189</dc:creator><description>&lt;p&gt;Hi richardf0001 highlighting an empty required field on-load is not possible but we can customize our design approach to achieve this requirement as mentioned below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* Throwing Form Based Validation based on some certain conditions on load */
load(
  local!email_txt,
  local!firstName_txt,
  a!formLayout(
    label: &amp;quot;Form Level Validation&amp;quot;,
    contents: {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!textField(
                label: &amp;quot;First Name&amp;quot;,
                required: true(),
                value: local!firstName_txt,
                saveInto: local!firstName_txt
              )
            }
          ),
          a!columnLayout(
            contents: {
              a!textField(
                label: &amp;quot;Email ID&amp;quot;,
                value: local!email_txt,
                saveInto: local!email_txt
              )
            }
          )
        }
      )
    },
    buttons: {
      a!buttonLayout(
        primaryButtons: {
          a!buttonWidgetSubmit(
            label: &amp;quot;SUBMIT&amp;quot;,
            style: &amp;quot;PRIMARY&amp;quot;,
            skipValidation: true()
          )
        }
      )
    },
    validations: a!validationMessage(
      message: &amp;quot;First Name is Required&amp;quot;,
      validateAfter: &amp;quot;REFRESH&amp;quot;,
      showWhen: isnull(local!firstName_txt)
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;NOTE:&lt;/strong&gt;&lt;/span&gt; We need to change the showWhen condition of&amp;nbsp;&lt;strong&gt;validationMessage&lt;/strong&gt; based on our requirement (Currently i have only considered one field as required and highlighted the error for the same i.e &lt;strong&gt;First name&lt;/strong&gt;). Similarly you can implement this logic when you are working with Editable Grid having CDT (Multiple) as your rule input / variable.&lt;/p&gt;
&lt;p&gt;Also unless it&amp;#39;s (skipping the validations upon Submit) not your business&amp;nbsp;requirement, i wouldn&amp;#39;t recommend opting for this approach.&lt;/p&gt;
&lt;p&gt;Hope this will help you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation on required fields</title><link>https://community.appian.com/thread/63159?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 19:43:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b2c27d1-5d54-4884-b180-1ac77f2f494c</guid><dc:creator>Mike Lasutschinkow</dc:creator><description>&lt;p&gt;Would it work for your use case to display validation &amp;quot;errors&amp;quot; in a box layout above the grid?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/11/validation_5F00_errors.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/validation_5F00_errors.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation on required fields</title><link>https://community.appian.com/thread/63152?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 18:11:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cbe2ec02-5bee-4ad0-ab84-b1ca4d5b2ccb</guid><dc:creator>Ashvin Kapur</dc:creator><description>Richard, based on my understanding, this is not possible. There are a couple of options you could use as workarounds:&lt;br /&gt;
&lt;br /&gt;
1. Add a &amp;quot;show requiredness&amp;quot; button at the top of the screen to highlight the required fields (set the button to validate but not submit). This would require additional user interaction, but should be able to achieve the rest of the desired behavior.&lt;br /&gt;
2. Leverage placeholder text to display &amp;quot;(Required)&amp;quot; in the cells of required fields. While this wouldn&amp;#39;t highlight in red, it would achieve the no additional user interaction requirement.&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m sure there are other workarounds, but these are a couple you could consider.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>