I would like to set the value of a field before saving (submitting) the public form. I'm trying to include the following code on the "beforeSave" function but it is not working. Please advise.
fd.beforeSave(function(data) {
fd.field('ePassColorWF').value = 'green';
Thanks,
Alberto