Catalog Client Script/Applies on Requested Items...

matthew_magee1
Giga Guru

I've got a CCS that works great. It hides and shows fields, makes mandatory/non-mandatory on the catalog item form perfectly. Why am I using CCS? It's a complex form and we couldn't get the results we wanted using catalog ui policies.

 

On my script, I have 'Applies on Requested Items' TRUE

 

On the order form, the variables hide and show as planned. For example, my script hides the monitor selection for a 24" monitor and shows the monitor selection for a 30" monitor (example)

 

However, when I submit the form and look at the sc_req_item details, both 24 and 30" monitor variables appear even though they don't appear when i am populating the order form through the catalog.

 

Has anyone seen this behavior before? And if so, how did you overcome it?

 

TIA

5 REPLIES 5

matthew_magee1
Giga Guru

Here's the code I had:


fucntion onChange(control,oldValue, newValue,isLoading) {



if(isLoading || newValue=='') {


return;


}



function blah blah blah...




Here's the new code:



fucntion onChange(control,oldValue, newValue,isLoading) {



if(newValue=='') {


return;


}



function blah blah blah...



Thanks again all