Hi,
We've got a few calculated fields that we need to update on change of two other fields, Does anyone have any information or suggestions to achieve this such as some JavaScript examples?
Thank You,
Hi,
We've got a few calculated fields that we need to update on change of two other fields, Does anyone have any information or suggestions to achieve this such as some JavaScript examples?
Thank You,
Hi Pankaj,
Perfect, Thank you!
Agreed with Pankaj's suggestions. Verified in my side
Hi Aiden,
You can use the formContext to set the calculated fields. onChange you can trigger the Javascript function. Sample code for reference.
function SetCalculatedField(executionContext) { var formContext = executionContext.getFormContext(); var calculated = field1 field2; formContext.getAttribute("calculatedField").setValue(calculated); }
Hope this helps
Bets Regards
PG
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156