How to set field Readonly in Workflow?

SS64
Tera Contributor

How to set  field Readonly in Workflow?

 

ex) If I  Approvaled,someone can't change approval field. 

4 REPLIES 4

Mike Patel
Tera Sage

you cant use workflow to make field read only.You can create UI script if xyz field is xxx then make field ready only. you can set xyz field value in workflow with xxx.

Namrata Khabale
Giga Guru

Hey SS,

Refer the Link it might help you:

 

https://community.servicenow.com/community?id=community_question&sys_id=ecaf4365dbdcdbc01dcaf3231f96...

 

Kindly Mark Correct if this solves your issue and also mark  Helpful if you find my response worthy!

 

 

Best Regards,

Namrata

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

can you explain your requirement? you cannot set a field to read-only from workflow; readonly can be set from client script, ui policy or from dictionary level

you can have a ui policy on the table with condition as state is approved; create UI policy action which sets that field as readonly

Regards
Ankur

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

Hi Ankur,

I have a requirement that if a user doesn't fill up a form after 3 reminders of email that form should block. There is one If condition also to check between the current date and start date where start date is being fetched from the main flow and this form blocking has to be done in the subflow.

Can you please help me with how can form be blocked in this case? Since we can't make the fields ReadOnly in workflow then what will be the best practise here?

 

Thanks in Advance!