Require project

Use this custom validation logic to ensure every record has a project selected before saving.

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.');