Make variable mandatory before on of the ScTask will be closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 05:36 AM
Hi All,
I need to make ona of the variable madatory before state of one of the ScTask will be changed to 'Closed'.
I suppose that I need to use Catalog Client Script, but how can I get the value from sctask and so on?
Thanks in advance for help!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 05:49 AM
@Kasia5 Where you would like to make the variable Mandatory on SC Task or RITM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 05:55 AM
on ScTask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 07:09 AM
Hi @Kasia5 ,
You can create onChange catalog Client script and in that you can check the state value and based on that you can make your variable(field) as mandatory,
Please refer the below screen shot,
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
Thank You
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 07:24 AM
Hi @Kasia5 ,
Is this variable is coming from RITM/ Catalog Item Variable or it is one of the field in Task form itself?
If this is coming from Catalog Item Variable then I think it should be filled/mandatory on catalog itself because it is being filled by the requestor
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Uday