SC Task doesn't show all the variables

John Vo1
Tera Guru

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

find_real_file.png

 

find_real_file.png

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

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.

View solution in original post

10 REPLIES 10

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?

try to switch into client script and see if still its contradicting 

What would I put in client script?  Not to proficient at JS.

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


}

}

 

 

 

Your code worked.  I went with UI policy by creating variables called external.  Thank you all for you help.