<?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>How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/discussions/f/new-to-appian/23042/how-to-display-values-from-drop-down-depending-of-the-selected-values</link><description>How to code for &amp;quot;display values from drop-down depending of the selected values? Cany any one provide sample code using the rule inputs for this?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89288?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 16:26:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a7d3a51-4217-4651-9fef-08668b5c45d9</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f602.svg" title="Joy"&gt;&amp;#x1f602;&lt;/span&gt;&amp;nbsp; Tis the season!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89287?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 16:24:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:456fe0fd-eadd-41f1-891a-52d6f82a4cab</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Aside: I&amp;#39;m totally giving you extra imaginary A-Score points for the amount of patience you&amp;#39;re displaying here...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89286?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 16:20:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3c8a98a-d527-403c-88fc-f86bf36da2d5</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Appian will not give an error for a missing rule input if the rule input exists.. If you would like some additional troubleshooting help, please attach a screen shot of the expression line&amp;nbsp;76 with the error message and rule input configuration visible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89285?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 16:12:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d07728d3-c25a-451f-b8bb-290ae0aeb7fa</guid><dc:creator>praveen1989</dc:creator><description>&lt;p&gt;No&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89284?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 16:10:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7907a8d-9eb5-44f3-8140-d9ee61421b89</guid><dc:creator>Chris</dc:creator><description>[quote userid="69816" url="~/discussions/f/new-to-appian/23042/how-to-display-values-from-drop-down-depending-of-the-selected-values/89238#89238"]I have already created rule input for subcategory[/quote]
&lt;p&gt;And..did it work as expected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89238?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 02:42:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f0bccec2-ccb6-43f1-85d2-de24da5f9644</guid><dc:creator>praveen1989</dc:creator><description>&lt;p&gt;I have already created rule input for subcategory&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89225?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 16:31:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f05ee8d-74a2-450a-8eca-8ef77176fff4</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;You will need to configure a rule input for &lt;em&gt;&lt;strong&gt;subCategory&lt;/strong&gt; &lt;/em&gt;- your initial sample contained rule inputs for &lt;em&gt;&lt;strong&gt;category&lt;/strong&gt;&lt;/em&gt;,&amp;nbsp;&lt;em&gt;&lt;strong&gt;subCategory&lt;/strong&gt;&lt;/em&gt;,&amp;nbsp;&lt;em&gt;&lt;strong&gt;reportingDateTime&lt;/strong&gt; &lt;/em&gt;and&amp;nbsp;&lt;em&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/em&gt;.&amp;nbsp; The only input change in my example was switching&amp;nbsp;&lt;em&gt;&lt;strong&gt;availableSubCategories&lt;/strong&gt; &lt;/em&gt;from a rule input to a local variable.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89197?ContentTypeID=1</link><pubDate>Sun, 19 Dec 2021 06:06:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:64789188-e3bb-4225-8572-198dde10b3d9</guid><dc:creator>praveen1989</dc:creator><description>&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;&lt;span style="color:#000000;font-size:inherit;"&gt;When I was run your code, I have got the below error.&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt; Interface Definition: Expression evaluation error at function a!dropdownField [line 76]: Could not find variable &amp;#39;ri!subCategory&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89182?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 16:08:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f1216f75-bc87-4cbc-a826-cbc080304cff</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Regarding line 42-48, you cannot declare ri! (rule inputs) in your interface as you do here.&amp;nbsp; Documentation is here related to &lt;a href="https://docs.appian.com/suite/help/21.4/enabling_user_interaction.html"&gt;Interface Variables and Inputs&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Instead this would be declared as a local variable, such as:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!availableSubCategories: choose(
    if(isnull(ri!category),1,ri!category),
    {&amp;quot;Laptop Issue&amp;quot;,&amp;quot;Internet Issue&amp;quot;},
    {&amp;quot;Cabs Issue&amp;quot;,&amp;quot;AC Issue&amp;quot;},
    {&amp;quot;Salary Issue&amp;quot;,&amp;quot;Project Allocation Issue&amp;quot;},
    {&amp;quot;Finance Planning&amp;quot;,&amp;quot;Fund Raising&amp;quot;}
  ),

  a!formLayout(
    label: &amp;quot;Create Incident Management&amp;quot;,
    contents: {
      a!boxLayout(
        label: &amp;quot;Requestor Details&amp;quot;,
        contents: {
          a!columnsLayout(
            columns: {
              a!columnLayout(
                contents: {
                  a!textField(
                    label: &amp;quot;Requestor&amp;quot;,
                    labelPosition: &amp;quot;ABOVE&amp;quot;,
                    value: loggedInUser(),
                    saveInto: {},
                    refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                    readOnly: true(),
                    validations: {}
                  )
                }
              ),
              a!columnLayout(
                contents: {
                  a!textField(
                    label: &amp;quot;Designation&amp;quot;,
                    labelPosition: &amp;quot;ABOVE&amp;quot;,
                    value: &amp;quot;Project Lead&amp;quot;,
                    saveInto: {},
                    refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                    readOnly: true(),
                    validations: {}
                  )
                }
              )
            }
          )
        },
        style: &amp;quot;ACCENT&amp;quot;
      ),

      a!sectionLayout(
        label: &amp;quot;Incident Category&amp;quot;,
        contents: {
          a!columnsLayout(
            columns: {
              a!columnLayout(
                contents: {
                  a!dropdownField(
                    label: &amp;quot;Category&amp;quot;,
                    labelPosition: &amp;quot;ABOVE&amp;quot;,
                    placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
                    choiceLabels: {&amp;quot;IT Support&amp;quot;, &amp;quot;Admin Support&amp;quot;, &amp;quot;HR Support&amp;quot;, &amp;quot;Finance&amp;quot;},
                    choiceValues: {1,2,3,4},
                    value : ri!category,
                    saveInto:{
                      ri!category,
                      a!save(ri!subCategory, null)

                    }
                    /*searchDisplay: &amp;quot;AUTO&amp;quot;,*/
                    /*validations: {}*/
                  )
                }
              ),
              a!columnLayout(
                contents: {
                  a!dropdownField(
                    label: &amp;quot;Sub Category&amp;quot;,
                    labelPosition: &amp;quot;ABOVE&amp;quot;,
                    placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
                    choiceLabels:local!availableSubCategories,
                    choiceValues:local!availableSubCategories,
                    value: ri!subCategory,
                    saveInto:{ri!subCategory},
                    disabled: isnull(ri!category),
                    searchDisplay: &amp;quot;AUTO&amp;quot;,
                    validations: {}
                  )
                }
              ),
              a!columnLayout(
                contents: {
                  a!dateTimeField(
                    label: &amp;quot;Reporting Date and Time&amp;quot;,
                    labelPosition: &amp;quot;ABOVE&amp;quot;,
                    value: ri!reportingDateTime,
                    saveInto: ri!reportingDateTime,
                    validations: {}
                  )
                }
              )
            }
          ),
          a!cardLayout(
            contents: {
              a!columnsLayout(
                columns: {
                  a!columnLayout(
                    contents: {
                      a!textField(
                        label: &amp;quot;Incident Title&amp;quot;,
                        labelPosition: &amp;quot;ABOVE&amp;quot;,
                        value : ri!incidentTitle,
                        saveInto: {ri!incidentTitle},
                        refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                        validations: {}

                      )
                    }
                  ),
                  a!columnLayout(
                    contents: {
                      a!paragraphField(
                        label: &amp;quot;Description&amp;quot;,
                        labelPosition: &amp;quot;ABOVE&amp;quot;,
                        value: ri!Description,
                        saveInto: ri!Description,
                        refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                        height: &amp;quot;MEDIUM&amp;quot;,
                        validations: {}
                      )
                    }
                  )
                }
              )
            },
            height: &amp;quot;AUTO&amp;quot;,
            style: &amp;quot;SUCCESS&amp;quot;,
            marginBelow: &amp;quot;STANDARD&amp;quot;,
            showBorder: false()
          )
        }
      ),
      a!boxLayout(
        label: &amp;quot;SLA&amp;quot;,
        style: &amp;quot;ACCENT&amp;quot;
      )
    },
    buttons: a!buttonLayout(
      primaryButtons: {
        a!buttonWidget(
          label: &amp;quot;Submit&amp;quot;,
          submit: true,
          style: &amp;quot;PRIMARY&amp;quot;
        )
      },
      secondaryButtons: {
        a!buttonWidget(
          label: &amp;quot;Cancel&amp;quot;,
          value: true,
          saveInto: ri!cancel,
          submit: true,
          style: &amp;quot;NORMAL&amp;quot;,
          validate: false
        )
      }
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89173?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 03:51:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:37870857-fbba-4ecb-9094-e1112f5c38c6</guid><dc:creator>praveen1989</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!formLayout(
  label: &amp;quot;Create Incident Management&amp;quot;,
  contents: {
    a!boxLayout(
      label: &amp;quot;Requestor Details&amp;quot;,
      contents: {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!textField(
                  label: &amp;quot;Requestor&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  value: loggedInUser(),
                  saveInto: {},
                  refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                  readOnly: true(),
                  validations: {}
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!textField(
                  label: &amp;quot;Designation&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  value: &amp;quot;Project Lead&amp;quot;,
                  saveInto: {},
                  refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                  readOnly: true(),
                  validations: {}
                )
              }
            )
          }
        )
      },
      style: &amp;quot;ACCENT&amp;quot;
    ),

    
    ri!availableSubCategories: choose(
      if(isnull(ri!category),1,ri!category),
      {&amp;quot;Laptop Issue&amp;quot;,&amp;quot;Internet Issue&amp;quot;},
      {&amp;quot;Cabs Issue&amp;quot;,&amp;quot;AC Issue&amp;quot;},
      {&amp;quot;Salary Issue&amp;quot;,&amp;quot;Project Allocation Issue&amp;quot;},
      {&amp;quot;Finance Planning&amp;quot;,&amp;quot;Fund Raising&amp;quot;}
    ),
    
    a!sectionLayout(
      label: &amp;quot;Incident Category&amp;quot;,
      contents: {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!dropdownField(
                  label: &amp;quot;Category&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
                  choiceLabels: {&amp;quot;IT Support&amp;quot;, &amp;quot;Admin Support&amp;quot;, &amp;quot;HR Support&amp;quot;, &amp;quot;Finance&amp;quot;},
                  choiceValues: {1,2,3,4},
                  value : ri!category,
                  saveInto:{
                    ri!category,
                    a!save(ri!subCategory, null)

                  }
                  /*searchDisplay: &amp;quot;AUTO&amp;quot;,*/
                  /*validations: {}*/
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!dropdownField(
                  label: &amp;quot;Sub Category&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
                  choiceLabels:ri!availableSubCategories,

                  choiceValues:ri!availableSubCategories,
                  value: ri!subCategory,
                  saveInto:{ri!subCategory},
                  disabled: isnull(ri!category),
                  searchDisplay: &amp;quot;AUTO&amp;quot;,
                  validations: {}
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!dateTimeField(
                  label: &amp;quot;Reporting Date and Time&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  value: ri!reportingDateTime,
                  saveInto: ri!reportingDateTime,
                  validations: {}
                )
              }
            )
          }
        ),
        a!cardLayout(
          contents: {
            a!columnsLayout(
              columns: {
                a!columnLayout(
                  contents: {
                    a!textField(
                      label: &amp;quot;Incident Title&amp;quot;,
                      labelPosition: &amp;quot;ABOVE&amp;quot;,
                      value : ri!incidentTitle,
                      saveInto: {ri!incidentTitle},
                      refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                      validations: {}

                    )
                  }
                ),
                a!columnLayout(
                  contents: {
                    a!paragraphField(
                      label: &amp;quot;Description&amp;quot;,
                      labelPosition: &amp;quot;ABOVE&amp;quot;,
                      value: ri!Description,
                      saveInto: ri!Description,
                      refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                      height: &amp;quot;MEDIUM&amp;quot;,
                      validations: {}
                    )
                  }
                )
              }
            )
          },
          height: &amp;quot;AUTO&amp;quot;,
          style: &amp;quot;SUCCESS&amp;quot;,
          marginBelow: &amp;quot;STANDARD&amp;quot;,
          showBorder: false()
        )
      }
    ),
    a!boxLayout(
      label: &amp;quot;SLA&amp;quot;,
      style: &amp;quot;ACCENT&amp;quot;
    )
  },
  buttons: a!buttonLayout(
    primaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Submit&amp;quot;,
        submit: true,
        style: &amp;quot;PRIMARY&amp;quot;
      )
    },
    secondaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Cancel&amp;quot;,
        value: true,
        saveInto: ri!cancel,
        submit: true,
        style: &amp;quot;NORMAL&amp;quot;,
        validate: false
      )
    }
  )
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As per your suggestion, I have used above code. I have used rule inputs instead of local variables in my form. Please check the code from line no.42 to 90. I am getting below error message.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!dropdownField [line 80]: Could not find variable &amp;#39;ri!availableSubCategories&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Eventhough I have used ri!subCategory instead of ri!availableSubCategories, I am getting error message like below.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!dropdownField [line 80]: A dropdown component [label="Sub Category"] has an invalid value for &amp;quot;choiceValues&amp;quot;. Choice values cannot be null&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89172?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 03:48:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f15b957e-b8d4-43f3-aef5-d08e3deefd54</guid><dc:creator>praveen1989</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!formLayout(
  label: &amp;quot;Create Incident Management&amp;quot;,
  contents: {
    a!boxLayout(
      label: &amp;quot;Requestor Details&amp;quot;,
      contents: {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!textField(
                  label: &amp;quot;Requestor&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  value: loggedInUser(),
                  saveInto: {},
                  refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                  readOnly: true(),
                  validations: {}
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!textField(
                  label: &amp;quot;Designation&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  value: &amp;quot;Project Lead&amp;quot;,
                  saveInto: {},
                  refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                  readOnly: true(),
                  validations: {}
                )
              }
            )
          }
        )
      },
      style: &amp;quot;ACCENT&amp;quot;
    ),

    
    ri!availableSubCategories: choose(
      if(isnull(ri!category),1,ri!category),
      {&amp;quot;Laptop Issue&amp;quot;,&amp;quot;Internet Issue&amp;quot;},
      {&amp;quot;Cabs Issue&amp;quot;,&amp;quot;AC Issue&amp;quot;},
      {&amp;quot;Salary Issue&amp;quot;,&amp;quot;Project Allocation Issue&amp;quot;},
      {&amp;quot;Finance Planning&amp;quot;,&amp;quot;Fund Raising&amp;quot;}
    ),
    
    a!sectionLayout(
      label: &amp;quot;Incident Category&amp;quot;,
      contents: {
        a!columnsLayout(
          columns: {
            a!columnLayout(
              contents: {
                a!dropdownField(
                  label: &amp;quot;Category&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
                  choiceLabels: {&amp;quot;IT Support&amp;quot;, &amp;quot;Admin Support&amp;quot;, &amp;quot;HR Support&amp;quot;, &amp;quot;Finance&amp;quot;},
                  choiceValues: {1,2,3,4},
                  value : ri!category,
                  saveInto:{
                    ri!category,
                    a!save(ri!subCategory, null)

                  }
                  /*searchDisplay: &amp;quot;AUTO&amp;quot;,*/
                  /*validations: {}*/
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!dropdownField(
                  label: &amp;quot;Sub Category&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
                  choiceLabels:ri!availableSubCategories,

                  choiceValues:ri!availableSubCategories,
                  value: ri!subCategory,
                  saveInto:{ri!subCategory},
                  disabled: isnull(ri!category),
                  searchDisplay: &amp;quot;AUTO&amp;quot;,
                  validations: {}
                )
              }
            ),
            a!columnLayout(
              contents: {
                a!dateTimeField(
                  label: &amp;quot;Reporting Date and Time&amp;quot;,
                  labelPosition: &amp;quot;ABOVE&amp;quot;,
                  value: ri!reportingDateTime,
                  saveInto: ri!reportingDateTime,
                  validations: {}
                )
              }
            )
          }
        ),
        a!cardLayout(
          contents: {
            a!columnsLayout(
              columns: {
                a!columnLayout(
                  contents: {
                    a!textField(
                      label: &amp;quot;Incident Title&amp;quot;,
                      labelPosition: &amp;quot;ABOVE&amp;quot;,
                      value : ri!incidentTitle,
                      saveInto: {ri!incidentTitle},
                      refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                      validations: {}

                    )
                  }
                ),
                a!columnLayout(
                  contents: {
                    a!paragraphField(
                      label: &amp;quot;Description&amp;quot;,
                      labelPosition: &amp;quot;ABOVE&amp;quot;,
                      value: ri!Description,
                      saveInto: ri!Description,
                      refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                      height: &amp;quot;MEDIUM&amp;quot;,
                      validations: {}
                    )
                  }
                )
              }
            )
          },
          height: &amp;quot;AUTO&amp;quot;,
          style: &amp;quot;SUCCESS&amp;quot;,
          marginBelow: &amp;quot;STANDARD&amp;quot;,
          showBorder: false()
        )
      }
    ),
    a!boxLayout(
      label: &amp;quot;SLA&amp;quot;,
      style: &amp;quot;ACCENT&amp;quot;
    )
  },
  buttons: a!buttonLayout(
    primaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Submit&amp;quot;,
        submit: true,
        style: &amp;quot;PRIMARY&amp;quot;
      )
    },
    secondaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Cancel&amp;quot;,
        value: true,
        saveInto: ri!cancel,
        submit: true,
        style: &amp;quot;NORMAL&amp;quot;,
        validate: false
      )
    }
  )
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As per your suggestion, I have used above code. I have used rule inputs instead of local variables in my form. Please check the code from line no.42 to 90. I am getting below error message.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt; Interface Definition: Expression evaluation error at function a!dropdownField [line 80]: Could not find variable &amp;#39;ri!availableSubCategories&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;Eventhough I have used ri!subCategory instead of&amp;nbsp;ri!availableSubCategories, I am getting error message like below.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt; Interface Definition: Expression evaluation error at function a!dropdownField [line 80]: A dropdown component [label="Sub Category"] has an invalid value for &amp;quot;choiceValues&amp;quot;. Choice values cannot be null.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89164?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 18:06:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:09fcadc7-cdaa-4742-b823-5ce58705c083</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Additionally, we could provide a little more assistance if you can share your use case.&amp;nbsp; Otherwise, here is a random example of a dropdown populated based on a selection of another dropdown:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!carData: {
    a!map(type: &amp;quot;BMW X5&amp;quot;, colors: {&amp;quot;Black&amp;quot;,&amp;quot;Red&amp;quot;,&amp;quot;White&amp;quot;}),
    a!map(type: &amp;quot;Porsche Cayenne&amp;quot;, colors: {&amp;quot;Blue&amp;quot;,&amp;quot;Gold&amp;quot;,&amp;quot;Grey&amp;quot;})
  },
  local!carSelected,
  local!colorSelected,
  local!index: a!refreshVariable(
    value: index(
      wherecontains(
        local!carSelected,
        a!forEach(items: local!carData.type, expression: tostring(fv!item))
      ),
      1,
      0
    )
  ),
  local!colorOptions: a!refreshVariable(
    value: property(index(local!carData,local!index,{}),&amp;quot;colors&amp;quot;,{})
  ),
  
  a!sideBySideLayout(
    items: {
      a!sideBySideItem(
        item: a!dropdownField(
          label: &amp;quot;Car&amp;quot;,
          placeholder: &amp;quot;Select..&amp;quot;,
          choiceLabels: local!carData.type,
          choiceValues: local!carData.type,
          value: local!carSelected,
          saveInto: {
            local!carSelected,
            a!save(local!colorSelected,null)
          }
        )
      ),
      a!sideBySideItem(
        item: a!dropdownField(
          label: &amp;quot;Color&amp;quot;,
          placeholder: &amp;quot;Select..&amp;quot;,
          disabled: isnull(local!carSelected),
          choiceLabels: local!colorOptions,
          choiceValues: local!colorOptions,
          value: local!colorSelected,
          saveInto: local!colorSelected,
        )
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display values from drop-down depending of the selected values</title><link>https://community.appian.com/thread/89163?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 18:03:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:81c8f5d6-0c5b-4293-ae87-eded95ed5a80</guid><dc:creator>hrishikeshd997</dc:creator><description>&lt;p&gt;If you&amp;nbsp;are looking for a cascading dropdown pattern, here is the SAIL recipe for it&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/recipe-configure-cascading-dropdowns.html"&gt;https://docs.appian.com/suite/help/21.4/recipe-configure-cascading-dropdowns.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>