Client Script g_form.addOption working on Catalog Item, but not in Requested Item

mozarstein
Kilo Contributor

Hello,

 

I have a client script which on the fly adds an option to a select box.

It works fine in the catalog item, but when the item is requested and I see it on the requested items, the option is not there. The scripts executes, but the

g_form.addOption doesn't. The variable I am trying to add an option is defined in a variable set. Of course, the script has the indication to be executed in the catalog item and in the item request.

 

Thanks for your help!

5 REPLIES 5

AdityaTW
Mega Contributor

What type of catalog client script - onLoad?


Hello



Yes, onLoad


randrews
Tera Guru

in the catalog item make sure the options you are adding are part of the variables select box choice list... otherwise it can't reference that item in the task/item after it is selected, make sure when you add it that it has the same VALUE as the add option line gives it.


I agree with Doug. You'll need to be sure that the target field has the same value on the RITM form and you'll need to have a client script firing there as well.