Skip to main content
hema.mathivathanan
June 30, 2023
Question

Disabled in dropdown

  • June 30, 2023
  • 20 replies
  • 0 views

Hi all, 

I have a dropdown field and have a condition for disbaled, based on that it will be disabled or not.
--> if it's not null or empty it's working fine

--> if it's null or empty, the dropdown is not disabled and I'm able to select a value for first time. Once I select the value, the dropdown gets disabled. ( since it considers that the field is not null and it's disabled. But I want the field to be editable) Can someone please help here.  

disabled: {
if(
a!isnullormepty(ri!record[my dropdown field])
false,
true
),

},

    20 replies

    stefanhelzle0001
    Brainy
    June 30, 2023

    This is confusing me! Why do you want to disable the field based on whether the selected value is null?

    hema.mathivathanan
    June 30, 2023

    not based on the selected value. sometimes the field will be populated will a record is created and sometimes not. 

    stefanhelzle0001
    Brainy
    June 30, 2023

    Can you share the code snippet of that dropdown?