Client Script g_form.addOption working on Catalog Item, but not in Requested Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2014 10:20 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2014 11:27 AM
What type of catalog client script - onLoad?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2014 10:28 PM
Hello
Yes, onLoad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2014 11:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2014 04:42 PM
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.