- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 11:51 PM
In my requirement need to make the catalog form to be closed complete after task status was changed to closed complete.
In detail, If the approval is approved. It will create catalog task with status closed complete. Next, step should be once the catalog task was created with closed complete the catalog form should be read only.
I used client script for this but not working. Here I attach the screenshot of the script.
Please suggest is any other method.
If UI policy means no. I will affect globally. Only for x catalog item this should be done.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 12:06 AM
Hi @Deepika43,
Make sure that values for close complete is correct and
Syntax:
g_form.setReadOnly('field_name', true/false);
I would suggest to use UI policy with needed conditions and add fields with Read only as true.
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers! 👍🏻
Thanks,
Sagar Pagar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 12:32 AM - edited 09-20-2023 12:33 AM
@Deepika43 , I would use a UI Policy or Client Script within Catalog Item (Maintain Item --> Your Catalog Item --> related List UI Policy or Client Script). And remove in your Condition "Closed Complete" with "3".
Greets
Daniel
Please mark reply as Helpful/Correct, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 12:06 AM
Hi @Deepika43,
Make sure that values for close complete is correct and
Syntax:
g_form.setReadOnly('field_name', true/false);
I would suggest to use UI policy with needed conditions and add fields with Read only as true.
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers! 👍🏻
Thanks,
Sagar Pagar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 12:07 AM - edited 09-20-2023 12:11 AM
Hi @Deepika43 , you can also add UI Policies in Catalog Item like you do with Client Script - or if you want to reuse it, you can move UI Policy in a Variable Set. In your script getValue doesn't deliver the Display Value "Closed Complete" that's why your Condition is wrong. You should check for '3'. And remove the isLoading condition as you want to have this field also readonly as soon as it changes to this state. Otherwise only if you open an already closed task it will be readonly.
Greets
Daniel
Please mark reply as Helpful/Correct, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 12:20 AM
I need to make catalog task form as read only. The below mentioned form

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 12:32 AM - edited 09-20-2023 12:33 AM
@Deepika43 , I would use a UI Policy or Client Script within Catalog Item (Maintain Item --> Your Catalog Item --> related List UI Policy or Client Script). And remove in your Condition "Closed Complete" with "3".
Greets
Daniel
Please mark reply as Helpful/Correct, if applicable. Thanks!