How to implement quantity variable and calculate costs on a catalog request form?

JennyHu
Tera Guru
Tera Guru

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

4 REPLIES 4

Ivano B
ServiceNow Employee
ServiceNow Employee

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


jlaue
Kilo Sage

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!

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".

find_real_file.png

Within the Variable Set, create a variable for the name of the accessory and another variable for the quantity.  For example:

find_real_file.png

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.

find_real_file.png

If they clicked on the "Add" button, they will see the variables you have defined in the variable set.find_real_file.png

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

RiteshSwarnakar
Giga Guru