Requested For - Default to empty

JLeong
Mega Sage

How can I empty the "Requested For" by default in Helsinki? This was working in Geneva until I changed the Service Catalog Properties to Use the sc_layout driven cart macros

The onload client script doesn't work anymore.

function onLoad() {

g_form.clearValue('requested_for');

}

Thanks.

Jocelyn

1 ACCEPTED SOLUTION

Here's what I found... it's set by the UI macro sc_cart_view_requested_for.



This is added to the cart layout record: Shopping Cart (target: Cart Preview Screen (two step)). Since you cannot modify the original UI macro, you can copy it, update the copy so it does not set the variable (see lines 8 and 9 in the macro), then replace the usage of the macro in the cart layout's related list with your new one.


View solution in original post

12 REPLIES 12

Thanks Chuck! I will try this and let you know.


Hi Chuck,


It worked!!! Thank you sooo much!


Now I need to create UI Script to validate the Requested For is not empty when Checkout. How can I accomplish that?



Thanks again!


I don't know. Originally I thought the ui_reference macro that presents the name had a mandatory attribute, but I'm not seeing it.