Skip to main content
hema.mathivathanan
July 6, 2023
Solved

disabled in interface

  • July 6, 2023
  • 2 replies
  • 0 views

I have a doubt in the parameter "Disabled". 

I have a form with some fields. For one of the field (Customer) I can select values via 2 options ( one from the dropdown and other is the text field) . These values are stored in dropdownCustomer and textCustomer field. 

I want to disabled the button if some fields are blank in my form. My doubt here is, for the customer field, there will be only one value present either the dropdown or the text field. 

If I check a!isnullorempty(dropdownCustomer), it maybe null but the other one textCustomer might hold the value. so, I need to check if any one of the field (dropdownCustomer or textCustomer) has a value, then I don't want to disbale it. Can someone please help here. 

disabled:

or(

a!isnullorempty(field1),

a!isnullorempty(field2),

a!isnullorempty(dropdownCustomer)

)

    Best answer by stefanhelzle0001

    or(
    
    a!isnullorempty(field1),
    
    a!isnullorempty(field2),
    
    and(
      a!isnullorempty(dropdownCustomer),
      a!isnullorempty(textCustomer)
    )
    )

    2 replies

    stefanhelzle0001
    Brainy
    July 6, 2023

    or(
    
    a!isnullorempty(field1),
    
    a!isnullorempty(field2),
    
    and(
      a!isnullorempty(dropdownCustomer),
      a!isnullorempty(textCustomer)
    )
    )

    hema.mathivathanan
    July 6, 2023

    Thanks Stefan for your help