We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Unable to Find Currency Variable Type in Maintain Items

aparnaravi
Tera Contributor

 

Hi everyone,

I'm creating a catalog item and need to add a Currency field. However, when I go to Maintain Items (Variables), I don't see a Currency variable type available in the list.

Is there a way to create a Currency field in a catalog item? If not, what is the recommended approach to capture both the currency code (e.g., USD, INR, EUR) and the amount?

 

Any suggestions would be appreciated. Thank you!

2 REPLIES 2

Bhavya11
Kilo Patron

hi @aparnaravi ,

 

As Currency variable type is not present in the catalog item you need to create Single Line text type variable and you need add validations to it by creating onChange Client script.

 

Please refer this 

 

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

Tanushree Maiti
Tera Patron

Hi @aparnaravi 

 

ServiceNow does not have a native Currency variable type for Service Catalog items.

 

To capture both the currency code and the amount, I will recommend you to use two variables:

  • a Select Box for the currency code (e.g., USD, INR, EUR) and
  • a Single Line Text for the amount.

 

  1. For the Currency Code Variable (Alternative):
    • Variable Type: Select Box
    • Question: Select Currency (or Currency Code)
    • Question Choices: Add the exact codes you need as distinct choices (e.g., USD, EUR, INR).
  2. Create the Amount Variable:
    • Variable Type: Single Line Text
    • Question: Amount
  3. For Validation
    • Use an onChange Catalog Client Script on your Amount variable to ensure users only enter numeric data with correct decimal formatting

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti