I have tried to follow the scripts on other questions but they don't seem to be working for me. I applied the css class "comma" to my fields that need to have that style. I am not sure if this is for Forms Version 10. Please see below. I just need to comma separator and to round to 2 decimal place. I found
$(document).ready(function() {
$('.comma').change(function() {
$(this).val(formatCurrency($(this).val()));
});
function formatCurrency(value) {
var float = parseFloat(value);
return isNaN(float) ? 0 : (Math.round(float*100)/100).toFixed(2);
}
});