how to make a field writable/editable only for opened for
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2023 12:43 AM
Hi Everyone,
i want a certain field to be editable only for the opened for of the task, no other user apart from opened for should be able to edit the field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2023 12:54 AM
Hi,
I'd go for writing an ACL rule:
Type: record
Operation: write
Name: <TABLE_NAME>.<FIELDNAME>
Advanced: Ticked
Script:
answer = current.opened_by == gs.getUserID();
If you want to see some other examples, the following filter on the ACL table may assist:
scriptLIKEopened_by^operation=write
(Script contains opened_by and Operation = write)
hth,matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2023 02:03 AM
Hi, i don't want to write any ACL, could this be possible via UI policy or client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2023 02:07 AM
Yup, could be possible.
That said UI Policy or Client Script will only have access to fields on form...
...I'll assume you have opened_by on the form and have a go at doing/writing something.
Out of interest is this work on the Task table (form) or a child thereof?
r,matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2023 02:10 AM
yeah this would be HR task table,
how would this be possible via client script or UI policy?