Set default currency for Price field on form

Community Alums
Not applicable

Hi All,

I observed one ambiguity .

We had requirement to show Default currency as "Yen".

1) updated property as below

find_real_file.png

Output :

find_real_file.png

 

2) By mistake T gets capital , but i have checked output

find_real_file.png

Output : its coming as per Expected , default Yen currency and with drop down optionfind_real_file.png

And if i make its value as "false" its not showing "Yen" currency as default. 

Not sure , can I go ahead with Capital "True" as giving expected output. and where i should report this bug.

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi All,

 

As we raised HI ticket for this ambiguity, They have not recommended such type of value only true/false need to be in value.

Solution Proposed:
As stated in the "Session and reference currency" product documentation:

When users view a currency value, they can see the value as entered or in the session-currency format. The format contains the:
- Currency symbol
- Value converted to the session currency and shown in a localized number format.
The user's locale determines the session currency format



As stated in the "Default currency values in forms" product documentation:

A combo box provides a list of currencies available in the system. The user's locale determines its format. When entering or changing the numeric value, format the value in the format specified by the user's locale. In the form for a new record, the combo box with the list of currencies has the reference currency selected, and the numeric value set to zero.



The only way to meet requirement, through supported means, is to set a user or system locale that corresponds to a default currency that you want users to have selected for currency fields.

For example, if you set your instance's system locale (it's "glide.system.locale" system property value) to "ja.JP", the Japanese Yen will be selected as every currency field's initial/default currency - for every user. If the "glide.system.locale" system property has no value set on the system properties table, its value will default to "en.US", thus, US Dollars will be the default currency for all users.
You can set a specific user's locale via their sys_user record's "country" and "language" field - which will be used to determine their locale. The default currency will be based on the user's locale (instead of the system's locale) if they have a locale set via the aforementioned fields.

To learn more about system locales, please reference the following product documentation:
Product Documentation - Locale settings

Mark it as Helpful if it helps you 🙂  

 

View solution in original post

8 REPLIES 8

Community Alums
Not applicable

Hi Ankur,

Thanks .

We have raised HI ticket to get confirmation on this, as we can not change property directly it may affect on existing currency field.

Please find below link:

https://hi.service-now.com/kb_view.do?sysparm_article=KB0751553

 

As per reply from HI team I would like to update this thread. 🙂 

Sure do let us know an update.

It's interesting to know what they mention about the true vs True

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Community Alums
Not applicable

Hi All,

 

As we raised HI ticket for this ambiguity, They have not recommended such type of value only true/false need to be in value.

Solution Proposed:
As stated in the "Session and reference currency" product documentation:

When users view a currency value, they can see the value as entered or in the session-currency format. The format contains the:
- Currency symbol
- Value converted to the session currency and shown in a localized number format.
The user's locale determines the session currency format



As stated in the "Default currency values in forms" product documentation:

A combo box provides a list of currencies available in the system. The user's locale determines its format. When entering or changing the numeric value, format the value in the format specified by the user's locale. In the form for a new record, the combo box with the list of currencies has the reference currency selected, and the numeric value set to zero.



The only way to meet requirement, through supported means, is to set a user or system locale that corresponds to a default currency that you want users to have selected for currency fields.

For example, if you set your instance's system locale (it's "glide.system.locale" system property value) to "ja.JP", the Japanese Yen will be selected as every currency field's initial/default currency - for every user. If the "glide.system.locale" system property has no value set on the system properties table, its value will default to "en.US", thus, US Dollars will be the default currency for all users.
You can set a specific user's locale via their sys_user record's "country" and "language" field - which will be used to determine their locale. The default currency will be based on the user's locale (instead of the system's locale) if they have a locale set via the aforementioned fields.

To learn more about system locales, please reference the following product documentation:
Product Documentation - Locale settings

Mark it as Helpful if it helps you 🙂  

 

You can use dictionary override for default value in format currency;0 - in my case I have used CZK;0 and when creating new record currency is automatically set to CZK and 0