clearing a text box after info is entered and saved
On a information form I am creating I put in a custom script - see below to make the text box email only and an alert come up for the user to enter only a valid email address.
var alert1 = ("Please enter your email in a valid format"); var email = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;if(!email.test(event.value)){event.rc = false;app.alert(alert1);event.value = "example\u0040example.com";}
This part works, but after it is saved by the user, or even if user tabs tries to clear the box before saving it will not clear so another email
can be entered by another user filling out the form. Help!
