Catalog Item Price based on form

Stergios Stergi
Mega Guru

Hello!

 

I want to create a sevicenow catalog item that will have cost depending on a value that the user will choose. Example, The user selects the option "2" from a list and that changes the price of the request to 20 euro

Is there a way to do it without any use of code?

1 ACCEPTED SOLUTION

Stergios Stergi
Mega Guru

Hello everyone and thank you for the replies...

I have manage to accomplish the task that I was given, by using an Order guide.

 

Thanks once more!

View solution in original post

6 REPLIES 6

Dhananjay Pawar
Kilo Sage

Hi,

You can add the price for each choice and based on selection it will add in final amount. Check attached screenshot for clarification.

Thanks.

Community Alums
Not applicable

Hi @Stergios Stergi ,

When you open configure dictionary for price field you have dependent section, in that dependent section you can add that field on which you want that price depends on. When you change the value of that field automatically the price field set.

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak

Hello @Community Alums ,

Thank you very much for the reply. Is this the one you mention?

StergiosStergi_0-1713266850839.png

 

If so, could you help me with the script?

Community Alums
Not applicable

Hi @Stergios Stergi ,

You can refer this below code this is working fine for me, I take the dependent field called Fulfillment automation level You can take any field as per your requirement 

(function calculatedFieldValue(current) {

	// Add your code here
	if(current.fulfillment_automation_level == 'unspecified'){
		return 20;
	}if(current.fulfillment_automation_level == 'manual'){
		return 40;
	}
	if(current.fulfillment_automation_level == 'semi_automated'){
		return 60;
	}
        if(current.fulfillment_automation_level == 'fully_automated'){
		return 80;
	}
})(current);

SarthakKashya2_0-1713274651963.png

 

Here's the result 

 

1. When Manual  Price is 40

SarthakKashya2_1-1713274736088.png

 

2. When Unspecified  Price is 20

SarthakKashya2_2-1713274780452.png

 

Please mark my answer correct and Helpful if this works for you

 

Thanks and Regards 

Sarthak