Hide form elements like $mform->disabledIf

Re: Hide form elements like $mform->disabledIf

by James McLean -
Number of replies: 0

I don't believe so, at least without reloading the page. You may also be able to use Javascript and build a library to handle that - but the elements are simply then 'hidden' which raises other issues. disabledIf() uses javascript too so that will have similar problems anyway. 

We also encountered this and took the Javascript approach, but I consider it a hack which wasn't done very nicely (though, it 'works').