How to conditionally disable any field using a toggle field?

The problem is that the disabled prop doesn’t support query language out of the box. So you need a custom field that overwrites the disabled prop, as I suggested in this thread: Dynamic default number field - #2 by texnixe

Keep in mind that this does not work on the fly, for changes of the toggle field to reflect for the field that depends on this value, you need to save the page and reload. Because loading of the blueprint happens on the server side.

Or you would have to create a custom field that works similarly to the slug field and listens to changes on the frontend.

This cannot possibly work, because when is a field property, not an field option property.

1 Like