how to make a field writable/editable only for opened for

kartikey
Tera Contributor

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.

5 REPLIES 5

Matt102
Giga Guru

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

 

kartikey
Tera Contributor

Hi, i don't want to write any ACL, could this be possible via UI policy or client script?

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

kartikey
Tera Contributor

yeah this would be HR task table, 
how would this be possible via client script or UI policy?