A plugin to validate a field depending on another field's value
In your FieldType you have $this-&gt;element available, representing the Element the field is in. If you use $this-&gt;element-&gt;lightSwitchHandle you can access its value.