<?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 to  BoxLayout Label</title><link>https://community.appian.com/discussions/f/new-to-appian/18839/validation-to-boxlayout-label</link><description>Hi, 
 I am displaying the textfield inside in box layout. I want to display the error message as box layout if text field is not having the value. 
 here is the code 
 a!forEach( items: local!dataSubset, expression: a!boxLayout( label: &amp;quot; &amp;quot;, contents:</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Validation to  BoxLayout Label</title><link>https://community.appian.com/thread/74051?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 19:07:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:506dd288-066d-4c8f-8271-c9975ec39050</guid><dc:creator>siddharth_m</dc:creator><description>&lt;p&gt;Since you have a sectionLayout inside your boxLayout, you can throw a validation to the respective section containing a blank textfield. Hope this gives you an idea on achieving your usecase.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!textArray: {
    &amp;quot;A&amp;quot;,
    &amp;quot;&amp;quot;,
    &amp;quot;B&amp;quot;
  },
  a!forEach(
    items: local!textArray,
    expression: a!boxLayout(
      label: if(
        isnull(
          fv!item
        ),
        &amp;quot;Missing Data !!&amp;quot;,
        &amp;quot;&amp;quot;
      ),
      contents: {
        a!sectionLayout(
          validations: if(
            isnull(
              fv!item
            ),
            &amp;quot;Please provide a value&amp;quot;,
            &amp;quot;&amp;quot;
          ),
          contents: {
            a!textField(
              label: &amp;quot;Detail&amp;quot;,
              labelPosition: &amp;quot;ADJACENT&amp;quot;,
              value: fv!item
            )
          }
        )
      },
      style: if(
        isnull(
          fv!item
        ),
        &amp;quot;ERROR&amp;quot;,
        &amp;quot;INFO&amp;quot;
      ),
      marginBelow: &amp;quot;STANDARD&amp;quot;
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>