<?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</title><link>https://community.appian.com/discussions/f/user-interface/29684/validations</link><description>Hi, 
 I have a dropdown with 3 values. I store the selected dropdown value in a local variable( local!selection will be either 1/2/3 based on the selection by the user).User can create multiple records. By clicking on a dropdown value, a form opens up</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: validations</title><link>https://community.appian.com/thread/117773?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 08:33:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e39b0eb-c4ac-4165-859c-b02759895980</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;Thanks for your inputs!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: validations</title><link>https://community.appian.com/thread/117760?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 07:46:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1383a3f-fb1b-4b05-9c39-c6a8e45fe3d8</guid><dc:creator>Ignacio Mor&amp;#225;n</dc:creator><description>&lt;p&gt;Hi Hema,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;you just need to put a validation in the dropdown of the record form. Take a look to this example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!selectionRecord,
  local!selection: 1,
{
  a!dropdownField(
    label: &amp;quot;Dropdown&amp;quot;,
    labelPosition: &amp;quot;ABOVE&amp;quot;,
    placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
    choiceLabels: {&amp;quot;Option 1&amp;quot;, &amp;quot;Option 2&amp;quot;, &amp;quot;Option 3&amp;quot;, &amp;quot;Option 4&amp;quot;,
                    &amp;quot;Option 5&amp;quot;, &amp;quot;Option 6&amp;quot;, &amp;quot;Option 7&amp;quot;, &amp;quot;Option 8&amp;quot;,
                    &amp;quot;Option 9&amp;quot;, &amp;quot;Option 10&amp;quot;, &amp;quot;Option 11&amp;quot;, &amp;quot;Option 12&amp;quot;},
    choiceValues: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12},
    value:local!selectionRecord,
    saveInto: {local!selectionRecord},
    searchDisplay: &amp;quot;AUTO&amp;quot;,
    validations: {
     if(
       local!selectionRecord &amp;lt;&amp;gt; local!selection,
       &amp;quot;Must be the same as the first selection&amp;quot;,
       &amp;quot;&amp;quot;
     )
      
    }
  )
}
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>