- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2020 05:50 AM
Is there a reason why my SC task doesn't capture all the variables? When i'm in the catalog item I see all the questions but once I submit it the bottom half isn't capture. I've checked my workflow to make sure all the variables are included.
So this is the ones that's not being capture in the sc task
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2020 06:04 AM
Hi John,
Do you have Catalog UI Policies, Catalog Client Scripts used. If so, look for Applies to Target record, Applies to Catalog item, Applies to Catalog Task checkboxes are checked or not. You can try checking/unchecking those boxes save the policies then & then look for results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2020 06:43 AM
It's still not showing the other variables. What is best recommedation for this UI policy since the both use the same variable. Should i create a variable internal and external?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2020 08:08 AM
try to switch into client script and see if still its contradicting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2020 08:17 AM
What would I put in client script? Not to proficient at JS.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2020 08:27 AM
I always recommend for UI policy for this kind of work. but just for testing you can try with client script
sample code: onChange catalog client script on variable "will this be internal of external" variable.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Type appropriate comment here, and begin script below
if(newValue == 'External'){
g_form.setMandatory('VariableName',true); // make variable mandatory
g_form.setVisible('VariableName',true); // make variable visible
}
else{
g_form.setMandatory('VariableName',true); // visible false.
g_form.setVisible('VariableName',false); // mandatory false
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2020 04:54 PM
Your code worked. I went with UI policy by creating variables called external. Thank you all for you help.