Make catalog item variables read only in Catalog task and RITM based on RITM approval stage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have a user requesting if I can make the catalog item variables read only based on the RITM stage
If the stage is approved than the catalog item variables become read only.
If the RITM stage is waiting for approval than the variables are writeable.
Its easy to make it read only after submission but I I'm struggling to figure out where to apply variables read only based on the RITM stage logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Use an onLoad Client Script on the sc_req_item table, something like:
function onLoad() {
if (g_form.getValue('stage') == 'approved') {
g_form.setVariablesReadOnly(true);
}
}
depending on your actual stage value. This same logic doesn't make sense on Catalog Tasks - if you have tasks after an approval, chances are that additional information needs to be provided by the task fulfiller, and the Catalog Task vs RITM is the recommended place to do that. If there are certain variables/sections that should be read only on certain tasks, then use a UI Policy in those cases.
