I am creating a digital signature from scratch for a specialized form. The rule is working except for one part. the "invalid message" pops up as soon as anything is entered into the username. I thought that I set this up to only start the rule once "Sign" is clicked... but it's not working.
Below is a copy of the rule:
if (sign.clicked) { if (username.value == 'Name') if (password.value == '1234') var dt = new Date(); var day = dt.getDate(); var month = dt.getMonth() + 1; var year = dt.getFullYear(); date.value = month + '-' + day + '-' + year; date.visible = true; message.visible = false; } else { message.visible = true; date.visible = false; date.value = ''; }
Thanks!