- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2024 08:17 AM
I'm trying to perform some UI policies based on a stage of a SCTASK in my workflow.
I can't seem to get the stage value in my catalog client script.
When I try this, the stg variable comes up blank.
var stg = g_form.getValue.stage;
alert ("Stage is: " + stg);
Can this be done?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2024 11:45 AM - edited 07-13-2024 10:20 PM
Try below script and check
var ritm = g_form.getReference('request_item');
alert(ritm.stage);
Mark the response correct and helpful if the answer assisted your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2024 08:49 AM
Hi @Joe Taylor,
Try g_form.getValue('stage');
Mark the response correct and helpful if the answer assisted your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2024 10:21 AM
No, this doesn't work.
I think it's because the value of "stage" is part of the RITM workflow, not the form, so the g_form method isn't going to return anything.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2024 11:40 AM
What are you trying to achieve? Could you please clarify?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2024 11:45 AM - edited 07-13-2024 10:20 PM
Try below script and check
var ritm = g_form.getReference('request_item');
alert(ritm.stage);
Mark the response correct and helpful if the answer assisted your question.