get value from field and update item price

VinushaN0004809
Tera Contributor
I want the value entered in a Single Line Text variable on the Catalog Item form to be used as the Catalog Item price, so that the item price is dynamically determined based on the user-provided value at the time of request submission.
Is this possible..
if yes..any solution for this 
2 REPLIES 2

yashkamde
Giga Sage

Hello @VinushaN0004809 ,

 

The ServiceNow docs on Using variables for price setup confirms that native runtime price modifications require choice-based types (like Checkboxes or Multiple Choice). Freeform text entry is ignored by the pricing engine.

Although to bypass this limitation, implement the logic from the developer article :

Pass custom variable price in to Cart total 

 

If my response helped mark as helpful and accept the solution.

Ehab Pilloor
Mega Sage

Hi @VinushaN0004809,

 

It is possible but then there is a long process to follow for that. 

 

You can try to simplify the solution and use the variable as pricing point, hide the price in catalog view and update the User entered price in RITM level Price field.

Here is a link to that: https://www.servicenow.com/community/developer-articles/populate-ritm-price-field-with-catalog-strin...

 

Here is another option: https://www.servicenow.com/community/itsm-forum/how-to-create-a-catalog-item-with-a-user-specified-c...

 

Check with your Architect before doing the development.

 

Please Accept this response as Solution if it assisted you with your question & Mark this response as Helpful.

 

Kind Regards,

Ehab Pilloor