Announcements
Hi,
How to set a default value '0' in a currency column, can anyone help me on this?
Like this screen shot
@HelvinFrancis Please try to use following Javascript.
function test(executionContext){var formContext= executionContext.getFormContext();var currency =formContext.getAttribute("cr39c_testcurrency").getValue();if (currency = "null"){formContext.getAttribute("cr39c_testcurrency").setValue(0);}}
Hi @HelvinFrancis
What @yanoh @has suggested is a solution but it’s complex.
There are easier ways, without having to write code, using Business Rules or real-time workflow.
Depending on how you want the fields to default, Business Rules might not be appropriate as they only tigger when as user is interacting with the form in the user interface. If you have a background process or integration creating your records then you will want to use the real-time workflow as this also runs in the background.
Hope that makes sense
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 519 Most Valuable Professional
11manish 489
Haque 327