Can i add customized Dropdownlist logic?

In my case a relational property should not be able to be set by the user himself, but rather
by its relation to another object (in my example the school).

I could find a solution in the meantime, as describe I have hidden the relational dropdownlist
on the UI and set the value in the beforeCreate event (based on the “created_by” value).