Make Account Mandatory

Following script makes account selection mandatory for a worklog. You can add other conditions to create more complex checks. For example you can check group/role of user and only allow specific accounts if user is member of the group/role.

if (account == null) { return "Account is mandatory" }