<?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>Disabled in dropdown</title><link>https://community.appian.com/discussions/f/user-interface/29173/disabled-in-dropdown</link><description>Hi all, 
 I have a dropdown field and have a condition for disbaled, based on that it will be disabled or not. --&amp;gt; if it&amp;#39;s not null or empty it&amp;#39;s working fine 
 --&amp;gt; if it&amp;#39;s null or empty, the dropdown is not disabled and I&amp;#39;m able to select a value for</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115373?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 21:18:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b6bb88bb-536e-428b-a202-94aec9750a4d</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;This is fixed. This is what I did.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I had a expression rule which returns the record by its ID. I used a local variable which uses this expression rule. ( so this stores the initial value from the DB) In the dropdown field, I configured &amp;quot;disabled&amp;quot; based on the value from the local variable.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115371?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 20:28:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c1cb716d-5122-4e44-8112-1e98c36a1c6a</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="154541" url="~/discussions/f/user-interface/29173/disabled-in-dropdown/115369#115369"]I need the initial value to get stored. Based on which, I need to disable.[/quote]
&lt;p&gt;Sorry, that&amp;#39;s still super unclear.&amp;nbsp; Can you write out, in a list of steps, what you are hoping the user&amp;#39;s experience will be?&amp;nbsp; When is &amp;quot;value from the external system&amp;quot; being loaded, and how (i asked this before)?&amp;nbsp; What are you expecting &amp;quot;the initial value&amp;quot; to be, and what do you mean &lt;em&gt;exactly&lt;/em&gt; by &amp;quot;get stored&amp;quot;?&lt;/p&gt;
&lt;p&gt;for example, i&amp;#39;m hoping to see something looking like:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;the user loads the task, at first the Dropdown appears but has no selections and is &lt;em&gt;&lt;strong&gt;DISABLED&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;the user presses a button labelled &amp;quot;load external data&amp;quot; which sends an API call and gets back a list of results&lt;/li&gt;
&lt;li&gt;the API call results are stored into local!myApiCallResults&lt;/li&gt;
&lt;li&gt;the local!myApiCallResults will become selectable in the Dropdown Field&lt;/li&gt;
&lt;li&gt;the user is able to make a selection from the results, and that value is stored into ri!myRecordType[dropdownSelection]&lt;/li&gt;
&lt;li&gt;the dropdown should remain &lt;em&gt;&lt;strong&gt;ENABLED&lt;/strong&gt;&lt;/em&gt;, and the user can continue changing their selections, prior to SUBMIT being pressed.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The above is a sequence I invented, and I intend it to be vaguely similar to your use case (per what I can discern from my point of view and details given so far), but with an assumption that I&amp;#39;ve gotten certain details wrong / backwards / etc.&lt;/p&gt;
&lt;p&gt;This is the amount of detail we need from you here in order to tell precisely what the User Experience is intended to be, with further details specifying &lt;em&gt;&lt;strong&gt;exactly how and why&lt;/strong&gt;&lt;/em&gt; the current experience is not matching what you had hoped for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115369?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 19:33:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:deba0722-4aec-4a4e-9b9a-2bb43cef08ec</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;I am getting a value from the external system. I need the initial value to get stored. Based on which, I need to disable. Hope I answered your question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115366?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 19:01:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2e675ca-8d88-48a2-925e-2f697063865d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you clarify exaclty what information you&amp;#39;re getting from the external system, how, and when?&amp;nbsp; Stefan seems to have figured out something here but I&amp;#39;m still a little fuzzy with respect to what the desired sequence of events is, and the shape of the data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What are you storing at first, and why?&lt;/p&gt;
&lt;p&gt;When you say &amp;quot;when I store in the local variable&amp;quot;, what information are you referring to being stored there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115365?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:54:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3375d82a-b6cb-4c28-b964-fbb3c2471bb1</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;yeah, exactly this is my requirement. So when I store in the local variable should I store the field name alone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115363?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:42:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6b30306-b256-4c6a-9455-e024fdf2aac8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You cannot combine that logic into one value. Let&amp;#39;s dissect that.&lt;/p&gt;
&lt;p&gt;You have a dropdown. In case you get a value from the external system, this value shall be disabled. Correct? So, you will have to check the data as it comes in and, in a separate local variable, define whether to disable that field. Then use that for the disabled parameter.&lt;/p&gt;
&lt;p&gt;Then you can use the actual record field just for the purpose it is meant for. Store the selected value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115362?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:38:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:94da48c7-4c6e-470a-96cb-f544c0d57c63</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="154541" url="~/discussions/f/user-interface/29173/disabled-in-dropdown/115361#115361"]But I want to remain it as a editable field [/quote]
&lt;p&gt;So if you remove / comment the &amp;quot;disabled&amp;quot; parameter, it will remain editable.&amp;nbsp; What is your intention behind disabling it conditionally?&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!dropdownField(
  label: &amp;quot;dropdown&amp;quot;,
  choiceLabels: {},
  choiceValues: {},
  value: ri!record[fieldname],
  saveInto: ri!record[fieldname],
  disabled: false(),   /* this can either be &amp;quot;false()&amp;quot; or just removed if you never need it to be disabled */
  required: true()
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115361?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:37:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4daa9663-546a-4350-bf9c-2490526bb7df</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;In my case, when I pull the data from the external system the field is blank. So the user can select the value from the dropdown. But once after I select a value from a dropdown, it&amp;#39;s getting disabled ( I think it&amp;#39;s because it checks the condition isnotnullorempty and it&amp;#39;s getting disabled). But I want to remain it as a editable field ( since the data from the external system is blank)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115360?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:33:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef946f7f-3f41-4af9-82d3-0b5efbb0d7ab</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;My requirement here is, I pull the data from the external system. After pulling the data, when I view the record somteimes the dropdown field might get a value from the external system and sometimes it will be empty.&lt;br /&gt;If the field is empty, then the user can select values from the dropdown. If the field is not empty (populated by the external system) then I want to disable the field, so that user can change the value&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115359?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:32:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:889125f5-d68d-4022-b87d-85e58df0d47a</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="59361" url="~/discussions/f/user-interface/29173/disabled-in-dropdown/115357#115357"]Why do you make disabled depending on whether a value is selected?[/quote]
&lt;p&gt;I&amp;#39;d ask it this way: what is the actual behavior you&amp;#39;re wanting, and in &lt;em&gt;&lt;strong&gt;exactly&lt;/strong&gt;&lt;/em&gt; what way is your current implementation failing to do what you want?&amp;nbsp; I can&amp;#39;t quite tell either of these things based on your original post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115358?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:30:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75e23159-571e-4bae-b5c0-25d31acd04d5</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="59361" url="~/discussions/f/user-interface/29173/disabled-in-dropdown/115355#115355"]Is that the real code? [/quote]
&lt;p&gt;consider that Record Type code (when copied/pasted to plaintext) looks like incomprehensible gobbledygook - so most folks understandably obfuscate that stuff out.&amp;nbsp; Sad that we have to resort to such measures just to post code here, but meh...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115357?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:30:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9e9c2466-68de-4402-851d-c7876555f65e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. Then I need to repeat my question. Why do you make disabled depending on whether a value is selected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115356?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:26:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d125b3d1-8e90-49e0-9386-c0458b322b27</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;I didn;t mention the exact field here. But in my code I am referring to the dropdown field&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115355?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:21:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4454c60f-626f-4cc0-8186-a9732d380578</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Is that the real code? Line 11 does not look correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115354?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:19:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:55a7c6dd-0cce-41e6-8a2d-b2e3e6615c7c</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!dropdownField(
  label: &amp;quot;dropdown&amp;quot;,
  choiceLabels: {},
  choiceValues: {},
  value: ri!record[fieldname],
  saveInto: ri!record[fieldname],
  disabled: {
    if(
      and(
        a!isNullOrEmpty(
          ri!record[],
          
        ),
        local!isValueAvailable
      ),
      false,
      true
    ),
    
  },
  required: true
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115353?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 18:16:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5776ab4-4d9a-4a99-9bca-62d2efaca1ff</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Please share your code for the entire dropdown.&amp;nbsp; And as Stefan mentioned, please use a Code Box to enable us to see proper formatting and indentation.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1688148961770v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115350?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 17:58:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa18901e-1bda-4586-88f3-1b6a0c555fd1</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;disabled: {&lt;br /&gt; if(&lt;br /&gt;and(&lt;br /&gt; a!isNullOrEmpty(&lt;br /&gt; ri!record[] ),&lt;/p&gt;
&lt;p&gt;local!isvalueavailable),&lt;br /&gt; false,&lt;br /&gt; true&lt;br /&gt; ),&lt;br /&gt; &lt;br /&gt; },&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115349?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 17:54:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c8159c3c-8610-45e0-b11e-484357ffb2ce</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Can you share the code snippet of that dropdown?&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1688147628084v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115348?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 17:51:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3404d26c-ab81-48ef-85f0-aeae94f80849</guid><dc:creator>hema.mathivathanan</dc:creator><description>&lt;p&gt;not based on the selected value. sometimes the field will be populated will a record is created and sometimes not.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabled in dropdown</title><link>https://community.appian.com/thread/115347?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 17:49:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:12ea24db-3a03-44bd-9896-90e6731706a3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This is confusing me! Why do you want to disable the field based on whether the selected value is null?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>