<?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>Alert</title><link>https://community.appian.com/discussions/f/general/20638/alert</link><description>I have 30 questions in a form out of which few are mandatory. If I miss any one of them and go for submit, I can get error message at the end of page (usually before submit button). It is very difficult to scroll up the page and find for the missing ques</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Alert</title><link>https://community.appian.com/thread/80753?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 11:39:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e194a16a-3a88-4117-853e-6be8594adb58</guid><dc:creator>mounikam0001</dc:creator><description>&lt;p&gt;Thank you so much Chris. Its clear and worked for me&amp;nbsp;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Alert</title><link>https://community.appian.com/thread/80616?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 14:29:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97b5da13-2cd5-4a61-b44b-ff6e630395e1</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;When you apply validations to both the fields themselves, and within a!formLayout&amp;#39;s validations parameter, you will have error messages showing both underneath the field missing data, and at the bottom of the form.&amp;nbsp; Is that not enough for your requirement?&amp;nbsp; Note validation pop-ups are not available, but we can show any messages on screen.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!numberOfQuestions: 10,
  local!questions: 1+enumerate(local!numberOfQuestions),
  local!answers: repeat(local!numberOfQuestions,null),
  local!validations: reject(
    fn!isnull,
    a!forEach(
      items: local!answers,
      expression: if(rule!APN_isEmpty(fv!item),concat(&amp;quot;Please answer question &amp;quot;,fv!index),null)
    )
  ),
  
  a!formLayout(
    contents: {
      a!forEach(
        items: local!questions,
        expression: a!textField(
          labelPosition: &amp;quot;ADJACENT&amp;quot;,
          label: concat(&amp;quot;Q&amp;quot;,fv!item),
          value: local!answers[fv!index],
          saveInto: local!answers[fv!index],
          required: true
        )
      )
    },
    validations: local!validations,
    buttons: a!buttonLayout(
      primaryButtons: {
        a!buttonWidget(
          label: &amp;quot;Submit&amp;quot;,
          submit: true
        )
      }
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Alert</title><link>https://community.appian.com/thread/80603?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 06:09:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08aa066b-0fa1-4a18-8991-3982c692ec74</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Recently, in a similar situation, I tried to just add a sectionLayout to each question. Each section did a check whether any value for that question was entered. This shows a red bar in case the validation fails. Maybe this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Alert</title><link>https://community.appian.com/thread/80602?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 04:57:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:431ca157-e1a2-4587-be9b-665f18d1aa2f</guid><dc:creator>mounikam0001</dc:creator><description>&lt;p&gt;Thanks Santander for your suggestions, I tried them out. But looks like validations makes sense only when we answer the ques. My use case is - if I miss answering any of the question, how to handle it immediately. It is also fine if I can get any kind of popup with the missed items while submitting the form.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Alert</title><link>https://community.appian.com/thread/80601?ContentTypeID=1</link><pubDate>Wed, 31 Mar 2021 04:52:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2054de03-736e-4943-898a-757b5fb7571e</guid><dc:creator>mounikam0001</dc:creator><description>&lt;p&gt;Thanks Peter.!! I agree but most of the answer fields are of type text area with minimum length of 1000 characters. So in this case I dont think wizards are good option. Things apart, it is business requirement.&amp;nbsp;&lt;br /&gt;Can you help me with any other options ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Alert</title><link>https://community.appian.com/thread/80452?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 12:16:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56ca43cd-274c-42d5-935b-0206c2308a7e</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I&amp;#39;d also highly recommend using a &lt;a href="https://docs.appian.com/suite/help/latest/ux_wizards.html"&gt;wizard pattern&lt;/a&gt; if you have a long form. It&amp;#39;s usually good practice to ensure your form is short enough that scrolling is not required for exactly this reason, and creating a wizard can ensure that you have multiple shorter pages.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Alert</title><link>https://community.appian.com/thread/80431?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 20:01:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d61d8999-3813-4c81-9517-2f0d4358ef05</guid><dc:creator>Carlos Santander</dc:creator><description>&lt;p&gt;You can define specific validations for each component (see&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.1/recipe-use-validation-group-for-buttons-with-multiple-validation-rules.html"&gt;https://docs.appian.com/suite/help/21.1/recipe-use-validation-group-for-buttons-with-multiple-validation-rules.html &lt;/a&gt;for an example), as well as for forms, sections, and editable grids (see&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.1/Validation_Message.html"&gt;https://docs.appian.com/suite/help/21.1/Validation_Message.html&lt;/a&gt;). Using those would allow you to show the validation messages right where you want them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>