Require project

This example uses the validate-record event in conjunction with the INVALID function and PROJECTNAME expression to prevent saving if the user has not associated a project with the record.

ON('validate-record', function (event) {
  if (!PROJECTNAME()) {
    INVALID('Please select a project before saving.');
  }
});