<?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>Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/discussions/f/user-interface/24065/interface-getting-reload-when-i-select-a-value-from-dropdown</link><description>Hi there, 
 
 I have created two interface which are MedicalRequestForm and EquipmentRequestForm, then I created third interface as RequestForm where I took a radio button and shown the value as RequesType (Medical and Equipment). 
 
 I want that MedicalRequestForm</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92767?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 13:23:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:894582b8-b28b-4aae-9d83-ac602f0f5e4c</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;No problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92763?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 13:17:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6800930a-d507-42f2-8db7-0b1cdd527551</guid><dc:creator>Shubham Kumar</dc:creator><description>&lt;p&gt;Thanks a lot alot alot alot ... &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: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92756?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 12:33:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:825aec8c-1ef8-4531-99a6-cb0cf2a9007c</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi Shubham, Lets say you want to refresh the value for field &amp;quot;animalName&amp;quot;, then your code would be like below,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!radioButtonField(
                label: &amp;quot;Request Type&amp;quot;,
                labelPosition: &amp;quot;ABOVE&amp;quot;,
                choiceLabels: local!reqTypes,
                choiceValues: local!reqTypes,
                value: ri!ZMS_Requests.requesttype,
                saveInto: {
                ri!ZMS_Requests.requesttype,
                if(
                 ri!ZMS_Requests.requesttype=&amp;quot;Equipment&amp;quot;,
                  {
                   a!save(ri!ZMS_Requests.animalName,null)
                   },
                    {}
                  )
                }
                required: true,
                requiredMessage: &amp;quot;please select request type&amp;quot;,
                choiceLayout: &amp;quot;COMPACT&amp;quot;,
                choiceStyle: &amp;quot;STANDARD&amp;quot;,
                validations: {}
              )&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In the same way you can make null other fields as well when user changes value from &amp;quot;animal&amp;quot; to &lt;span&gt;&amp;quot;Equipment&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92755?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 12:20:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d576bd6e-48c7-46af-a17e-2c046bd93b74</guid><dc:creator>Shubham Kumar</dc:creator><description>&lt;p&gt;Thanks for your response!&lt;/p&gt;
&lt;p&gt;I am getting confused. Pasted my code below, could you please help where I do?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!reqTypes: cons!ZMS_REQUEST_TYPES,
  a!formLayout(
    label: &amp;quot;Raise A Request&amp;quot;,
    contents: {
      a!columnsLayout(
        columns: {
          a!columnLayout(contents: {}),
          a!columnLayout(
            contents: {
              a!radioButtonField(
                label: &amp;quot;Request Type&amp;quot;,
                labelPosition: &amp;quot;ABOVE&amp;quot;,
                choiceLabels: local!reqTypes,
                choiceValues: local!reqTypes,
                value: ri!ZMS_Requests.requesttype,
                saveInto: ri!ZMS_Requests.requesttype,
                required: true,
                requiredMessage: &amp;quot;please select request type&amp;quot;,
                choiceLayout: &amp;quot;COMPACT&amp;quot;,
                choiceStyle: &amp;quot;STANDARD&amp;quot;,
                validations: {}
              )
            }
          ),
          a!columnLayout(contents: {})
        }
      ),
      a!boxLayout(
        label: &amp;quot;Medical Request&amp;quot;,
        contents: rule!ZMS_MedicalRequestForm(ZMS_Requests: ri!ZMS_Requests),
        showWhen: if(
          ri!ZMS_Requests.requesttype = local!reqTypes[1],
          true,
          false
        ),
        style: &amp;quot;SUCCESS&amp;quot;,
        shape: &amp;quot;ROUNDED&amp;quot;,
        marginBelow: &amp;quot;STANDARD&amp;quot;
      ),
      a!boxLayout(
        label: &amp;quot;Equipment Request&amp;quot;,
        contents: rule!ZMS_EquipmentRequestForm(ZMS_Requests: ri!ZMS_Requests),
        showWhen: if(
          ri!ZMS_Requests.requesttype = local!reqTypes[2],
          true,
          false
        ),
        style: &amp;quot;SUCCESS&amp;quot;,
        shape: &amp;quot;ROUNDED&amp;quot;,
        marginBelow: &amp;quot;STANDARD&amp;quot;
      )
    },
    buttons: a!buttonLayout(
      primaryButtons: {
        a!buttonWidget(
          label: &amp;quot;Submit&amp;quot;,
          submit: true,
          saveInto: {
            a!save(
              ri!ZMS_Requests.createdby,
              loggedInUser()
            ),
            a!save(
              ri!ZMS_Requests.requestorname,
              loggedInUser()
            ),
            a!save(ri!ZMS_Requests.createddate, now()),
            a!save(ri!ZMS_Requests.isactive, true),
            a!save(ri!ZMS_Requests.isapproved, false),
            a!save(ri!ZMS_Requests.approvalrequired, false),
            a!save(ri!ZMS_Requests.overbudget, false),
            a!save(
              ri!ZMS_Requests.requestname,
              cons!ZMS_REQUEST_STATUS[1]
            )
          },
          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: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92754?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 12:01:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:30e2e69c-1646-44c2-8072-c419fc9cab00</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi Shubham, you can make the rule inputs null in saveInto parameter based on raidio button selection. SOme thing like below,&lt;/p&gt;
&lt;p&gt;saveInto:{&lt;/p&gt;
&lt;p&gt;if(&lt;/p&gt;
&lt;p&gt;ri!ZMS_Requests.requesttype=&lt;span&gt;&amp;quot;Equipment&amp;quot;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a!save(ri!input1,null),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a!save(ri!input2, null)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;you can make any field null based on your requirements.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92751?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 11:42:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74e1e41a-73f4-42c4-ab55-427b4edf3e30</guid><dc:creator>Shubham Kumar</dc:creator><description>&lt;p&gt;Hi Gopalk,&lt;/p&gt;
&lt;p&gt;I want to refresh the values whenever I am changing the radio button.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;If I selected &amp;quot;Medical&amp;quot; and selected a value from dropdown Animal Name, now I am switching to &amp;quot;Equipment&amp;quot;, so whatever I entered the value from &amp;quot;Medical&amp;quot;, that must be refreshed or set to null...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please help me to achieve this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92739?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 09:27:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7c5f7c9-5faf-4e35-b07f-e6772de0ca45</guid><dc:creator>ellanjayg0001</dc:creator><description>&lt;p&gt;good job&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92730?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 05:06:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ddf3ee1-619c-42e6-9f5e-545144fc82e0</guid><dc:creator>Shubham Kumar</dc:creator><description>&lt;p&gt;Thank you &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: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92729?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 04:59:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfb3765e-9767-423e-b790-97c2ffc5e0c8</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;good job.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92728?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 04:58:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:93de0ec5-ec4a-45a0-a8a4-374429f68fbb</guid><dc:creator>Shubham Kumar</dc:creator><description>&lt;p&gt;I resolved it. I was passing the null value at line no. 33&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Before:&lt;/p&gt;
&lt;p&gt;contents: rule!ZMS_MedicalRequestForm(ZMS_Requests: &amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt;Now:&lt;/p&gt;
&lt;p&gt;contents: rule!ZMS_MedicalRequestForm(ZMS_Requests: ri!ZMS_Requests),&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92727?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 04:54:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:999db155-a22f-4474-a224-18c351e6204f</guid><dc:creator>Shubham Kumar</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!formLayout(
  label: &amp;quot;Requests&amp;quot;,
  contents: {
    a!columnsLayout(
      columns: {
        a!columnLayout(
          contents: {}
        ),
        a!columnLayout(
          contents: {
            a!radioButtonField(
              label: &amp;quot;Request Type&amp;quot;,
              labelPosition: &amp;quot;ABOVE&amp;quot;,
              choiceLabels: cons!ZMS_REQUEST_TYPES,
              choiceValues: cons!ZMS_REQUEST_TYPES,
              value: ri!ZMS_Requests.requesttype,
              saveInto: ri!ZMS_Requests.requesttype,
              required: true,
              requiredMessage: &amp;quot;please select request type&amp;quot;,
              choiceLayout: &amp;quot;COMPACT&amp;quot;,
              choiceStyle: &amp;quot;STANDARD&amp;quot;,
              validations: {}
            )
          }
        ),
        a!columnLayout(
          contents: {}
        )
      }
    ),
    a!boxLayout(
      label: &amp;quot;Medical Request&amp;quot;,
      contents: rule!ZMS_MedicalRequestForm(ZMS_Requests: &amp;quot;&amp;quot;),
      showWhen: if(
        ri!ZMS_Requests.requesttype = cons!ZMS_REQUEST_TYPES[1],
        true,
        false
      ),
      style: &amp;quot;SUCCESS&amp;quot;,
      shape: &amp;quot;ROUNDED&amp;quot;,
      marginBelow: &amp;quot;STANDARD&amp;quot;
    ),
    a!boxLayout(
      label: &amp;quot;Equipment Request&amp;quot;,
      contents: rule!ZMS_EquipmentRequestForm(ZMS_Requests: &amp;quot;&amp;quot;),
      showWhen: if(
        ri!ZMS_Requests.requesttype = cons!ZMS_REQUEST_TYPES[2],
        true,
        false
      ),
      style: &amp;quot;SUCCESS&amp;quot;,
      shape: &amp;quot;ROUNDED&amp;quot;,
      marginBelow: &amp;quot;STANDARD&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: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92726?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 04:49:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:56548dae-f29b-4c36-aba9-8d02161e8c9e</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Dropdown code looks okay to me. is it possible to share code for the main request form? its difficult to debug the issue without seeing the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92725?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 04:38:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45d5c56e-d516-4673-a1b3-74e70d9755c4</guid><dc:creator>Shubham Kumar</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;local!List: rule!ZMS_GetAnimalList(),


a!dropdownField(
                label: &amp;quot;Animal Name&amp;quot;,
                labelPosition: &amp;quot;ABOVE&amp;quot;,
                placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
                choiceLabels: index(local!List, &amp;quot;animalname&amp;quot;),
                choiceValues: index(local!List, &amp;quot;animalid&amp;quot;),
                value: ri!ZMS_Requests.aniamlid,
                saveInto: ri!ZMS_Requests.aniamlid,
                searchDisplay: &amp;quot;AUTO&amp;quot;,
                required: true,
                requiredMessage: &amp;quot;please select an animal&amp;quot;,
                validations: {}
              )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92724?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 04:35:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61c1713b-18b1-4463-b8e8-6e567e00261f</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;can you share your code for Aniaml name dropdown?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92723?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 04:34:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:49c6c259-4375-45e5-85f3-ab4a91c80d9d</guid><dc:creator>Shubham Kumar</dc:creator><description>&lt;p&gt;Hi, thanks for your response.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am saving the value for radio button, and for dropdown also.&lt;/p&gt;
&lt;p&gt;&lt;img height="188" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1648182830026v1.png" width="683" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interface getting reload when I select a value from dropdown</title><link>https://community.appian.com/thread/92722?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 02:45:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:497d028a-4042-41fb-a07d-3ca8609ae3fa</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi, can you check what are you saving in drop-down field? Are you making radio button selection null here? If you are saying ,after selecting from drop down you are going back to screenshot 3 then it means that selected radio button value is getting null. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>