Just want to ask, is the below a correct syntax for variable and number field computation:
var VoteTotal = fd.field('numberfield1').value + fd.field('numberfield2').value + fd.field('numberfield3').value;
Apologies as I'm a newbie in JavaScript. I'm trying to accomplish a validation wherein if an inputted VotersShares (number field) is less than VoteTotal (var above), when the user clicks Submit button, it will give an error message.
Hi @mnikitina... I sorted it out. It seems that this cannot be done when calling an OnChange. I tried to insert the code in beforeSave and it worked. I think a button is needed for this to work. Is there a way you can call this without a button? Thanks again...