Hi, New here -
I'm using demo of Sage CRM Cloud and am trying to get two fields to add together.
From my reading it seems that 'Onchange' script is the way to go, however nothing happens when I change the fields.
My code is here (inserted in both fields onchage):
var LPP = parseInt(document.EntryForm.sand_lastpricepaid.value); var PP = parseInt(document.EntryForm.sand_petoprice.value); document.EntryForm.sand_pricedifference.value = (LPP + PP);
EDIT:
I should probably mention that my custom entity is Sandbox 1 (hence sand_). The value returned in the 'price difference' field is currently '0', the default value
All field types are set to 'Numeric'
Help appreciated!
Mike