How to implement quantity variable and calculate costs on a catalog request form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2017 05:05 AM
Hi there,
I'm looking to creating some variables on a service catalog item form so that the end users can select or enter a quantity for an item.
Example:
DateTime Required: April 2, 2017 10:00
Location:
___ Microphone
___ TV
___ Laptop
___ Extension Cord
Each item has a price associate with it. The cost can differ based on the requester type (internal vs. external). So ideally, it would be great if I can calculate the total cost and show it to the requester on the form.
What variable type would be most fitting for this requirement?
I chose not to use a catalog item for each item since there are other information that needs to be included in the request. Any recommendation is appreciated.
Thanks,
Jenny
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2017 03:41 PM
Hi Jenny
You can use the price implication field available on the variables.
http://wiki.servicenow.com/index.php?title=Service_Catalog_Variable_Pricing#gsc.tab=0
Ple
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018 02:33 PM
Hello -
I was wondering if you ever found a way to do this? I have certain accessories as Variable options and would like the requester to provide how many of these variables they need if selected. For example, for Radios, I would have earpieces as an option, if they tick the box for earpieces, I would like them to also be able to key in the quantity. I can acheive this with an extra variable called Quantity and make it visible and required with a Catalog UI Policy, however it is a single line text and just doesn't look good.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2018 07:07 AM
Hi @jlaue,
In London, there is a new variable set called "Multi-Row Variable Set". I believe this would solve the issue you are trying to tackle.
You can do so by creating a New Variable Set and select "Multi-Row Variable Set".
Within the Variable Set, create a variable for the name of the accessory and another variable for the quantity. For example:
Your user will be able to add one or multiple items of the variable set. For example, the screenshot below shows what the user sees on the service catalog form after adding 1 earpiece and 2 external speakers.
If they clicked on the "Add" button, they will see the variables you have defined in the variable set.
More information on Multi-Row Variable Set can be found on ServiceNow's docs site: https://docs.servicenow.com/bundle/london-it-service-management/page/product/service-catalog-managem...
Hope this is helpful!
Thanks,
Jenny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2022 09:49 PM
Please have a look into this article. This might be of some help: