State Field Read Only when state is closed complete in catalog task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2019 04:12 AM
Hi All,
We have a requirement On selecting state as closed incomplete/skipped/closed, State field should get greyed out once we have saved the task form with state as closed.
I wrote a write ACL to make state field read only once the state moves to Closed Complete it is not working properly. I could still find catalog task state field as editable. Is there any mistake ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2019 04:24 AM
hi write one catalog client script.
var catalogitem = g_form.getValue('u_item');
if(catalogitem=='Your catalog Item')
if(newValue==closedvalue && catalogitem=='Your Catalog Item')
{
g_form.seReadOnly('variables.Yourvariablename',true);
}
Please mark it as correct if it resolves.
Regards,
Debasis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2019 10:38 PM
Hi All,
Thank you for the reply. If i use the UI Policy as soon as i change the state to closed state is getting readonly. But my requirement once i submit the record then, it should be read only.