At
this time it is only possible to manually create a constraint in the
database table that will prevent writing and return an error message to
the GUI, even customized. In CMDBuild 3.0 version (end 2018), it will be possible define a run time control as information associated with the form. CMDBuild Team