Can you add the same request item multiple times from an order guide?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2016 08:16 AM
We have a software request form in another platform that allows users to select one or more standard software and/or one non-standard software. In translating this to ServiceNow, we are thinking we have one software form that only allows one software selection (standard or non-standard), then from an order guide the user would indicate that they need to order X software. We'd like it to then proceed to display the software form X times, each to be completed and then submitted. (Depending on the selection, a different series of approvals and tasks will be needed, thus the reason for one software per request item). How would we go about doing this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2016 02:34 PM
Are you saying that if you order a Development Laptop with a quantity of 10, that you want 10 tabs for development laptop to be filled out differently?
I did some heavy modification with a previous client that took the order guide items (lets say a new server had 5 separate items) and those were put into its own bundle within the cart. That bundle had a service level attached (bronze/silver/platinum) and if silver or platinum were chosen, the bundle would be duplicated X amount of times. To do that, I believe a UI Script was used to override the Choose Options functionality (add another function to be called when its clicked). The cart items were grabbed and then a function was called to duplicate them. I also added a custom item to every bundle so the cost could be allocated. The code to add something to a cart via script:
g_cart.add(gel("sysparm_id").value, getQuantity(), guid);
I hope that helps -- i'm sure this can be done though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2016 02:35 PM
Note: If that is the desired functionality, i'm guessing you wouldn't want this in every situation. Therefore, on I'd have something on the order guide or a flag on the catalog item to decide if that item is to be duplicated by the quantity (so you get multiple tabs) or not (so all quantity is on 1 form).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2016 02:42 PM
We were originally thinking to do that, if I say I need 5 laptops, when I get to the tabbed view, I see five tabs. Now we've gone another route and we're going to publish the software as individual catalog items. However, we're giving the end user a list collector of "software available". I don't want to use the rule base, as you have to create a rule specifically for each catalog item they could select. Instead, I'm looking for a dynamic solution. The client script I'm running (onSubmit) successfully send the information to the cart, but I think the button is causing an overwrite and it's running the rule base and clearing out the two crumb fields I've populated in my script. I'll look into the UI script and see if I can fix it there.
Thanks!