One year passed and we still are here… I can’t use $field[‘disabled’] = true; for ‘true/false’-field, because that doesn’t work. It’s a bit strange to have the functional which don’t work with two type of field. Why that is?
“Are you seeing the problem with the stylized UI on or off?” – Yes.
If I make the field[‘ui’] = 0; then will $field[‘disabled’] = true work? Where I need do it? I mean now I work into ‘acf/prepare_field’.
Hello I wanted to state that I came across this issue and I believe I was able to make this work as expected for the true_false field, now I know this will be removed upon an update but maybe this can make it’s way into the production version??
I added this to line 67 of the class-acf-field-true_false.php file.