Making a field mandatory in time card form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2024 02:38 AM
Hello , im looking for help in regards to making "worklogs comments" a mandatory field in Time card, however i didnt expect it to be this tricky as the form/ field is being used by a different account.
lets make it Parent account A , & Parent account B
im now trying to filter it by parent account ID as that parent account A has multiple child company accounts
and the same goes to ( parent account B. )
i only need to make the worklog comments field be mandatory if the parent of the account being used is Parent account A, else make the worklog comments field not mandatory.
i have tried using UI policies, UI policies action, and client script but nothing seems to be working.
i added some screen shots as a reference, any help would be appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2024 02:49 AM
@jabaya You are making a GlideRecord query in UI Policy script and trying to use current in it. GlideRecord queries are not supported in Service Portal and current object is not supported in UI Policy and client script. Hence the script is not working for you.