Catalog Client Script/Applies on Requested Items...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2014 10:20 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2014 08:25 AM
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