how to disable/enable fields in field editor ?

  • 1
  • Question
  • Updated 2 years ago
  • Answered
I have a field editor which has checkbox field (ui-only field)
When this checkbox is checked, I would like to disable fields in field editor (I have input text fields and picklist fields as well)

I gave a dummy css name to fields in field editor .

and tried something like :

 $(".ca").each(function(){               
                this.disabled=true;
                console.log('disabled . . .');
            });

This didn't work.

Any ideas ?


Thank You.
K
Photo of Kvin Cloud

Kvin Cloud

  • 262 Points 250 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Vivek Gupta

Vivek Gupta

  • 378 Points 250 badge 2x thumb
You can give a try to this  -

skuid.$('<style>.ca {display: none}</style>').appendTo('head');