Skip to main content
hema.mathivathanan
Employee
Jun 30, 2023 5:24 PM UTC
Question

Disabled in dropdown

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
    Jun 30, 2023 5:49 PM UTC

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

    hema.mathivathanan
    Employee
    Jun 30, 2023 5:51 PM UTC

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

    stefanhelzle0001
    Brainy
    Jun 30, 2023 5:54 PM UTC

    Can you share the code snippet of that dropdown?