Notifications
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268