How can we make it as a task fields in read-only for particular task

Rakhesh
Kilo Guru

Hi EveryOne,

We have a requirement i.e., we have a workflow and it is attached to catalog item .By the happy flow it's creating tasks based on our requirement. But we want to make it as a fields into read-only when the task is created and it is for particular task only.

And next task creation all fields are editable. How can we do this by using catalog task advanced script .Can anyone help me out this query.

 

 

Regards,

Rakesh

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Rakhesh,

So which fields you want to make readonly?

Is that field on sc_task table field or some variables on catalog?

you can have onLoad client script to make fields/variables readonly based on task description.

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi bawiskar,

 

Thanks for your reply.

 

Task fields are make readonly. These fields are in the sc_task table.

 

Actually it's a second task but in first task these fields are mandatory .I tried to write ui policy using task description still no luck.

 

 

Hi Rakhesh,

Any update on this?
Can you mark my answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader