how to make all variables of all the cataolge item read only on SC tasks after the task gets closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-17-2023 11:18 AM
I know that i can create one cataloge client script onload one on one catalogue item and make all the variables read only with the code g_form.setVariablesReadOnly(true);.
But in my instanse there are 100 cataolge item and its not possible to create 100 on load client script for all.
please suggest how cani achive it with one way only

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-17-2023 11:23 AM - edited ā02-17-2023 11:23 AM
Hi,
You wouldn't need to do this on 100 catalog items...you can create one client script on the sc_task table with checking the state value and if closed, set variables to read-only. This is if this is a platform wide requirement, otherwise, if it is per catalog item, then you'd want to use the catalog client script feature on each catalog item as needed.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-17-2023 11:29 AM
I have already tried this script but its not working at all

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-17-2023 05:43 PM
Hi @VIKAS MISHRA ,
There might be other client scripts which may be over riding this onload. Check them if there are present.
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.