Hi All,
I was just wondering if you guys knew if it JavaScript would fire when a calculated field is updated in the On Change event?
I currently have a calculated field that sums up a couple of rollup fields on the opportunity entity and need to use JavaScript to populate the Est. Revenue field so that when they close the opportunity as won the Actual Revenue is auto populated.
If you can think of a better way to do this please let me know!
Thanks,
Matt
*This post is locked for comments
Hi.
Had a similar requirement and have just tested it out myself.
You can trigger JavaScript onChange of a calculated field.
You can also reference the calculated field in your JS code for math queries i.e. if the calculated field is greater than 10
I think I will use a plug in to do it on the save event in that case, thanks.
I was just wondering if you guys knew if it JavaScript would fire when a calculated field is updated in the On Change event?
No, it will not because calculated fields do not change on the form, the calculated value is getting retrieved from the server already. But you can attach your JS to the onload event if you need that calculated value.
Have you tried using business rules for your case?
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156