If you would like to be one of the first people to hear about the release of our new components then make sure you have subscribed to our announcements list! We won't bug you with unnecessary stuff.
E-mail
Subscribe Unsubscribe
In this article we will describe how to create a simple form with RSform! with two email fields. The following script will be used to compare the value of these fields so you can get a confirmation that the data inputed by the user is correct. You can start by creating a new form with the following settings: Form Title: Compare Form Name: Compare The next step is to populate the form with the following fields:
Save the new fields created. On the "Form Style" tab type the following code right after " action="{action}" ": onsubmit="return checkEmail(this);" At the the end of form tag (after ) you will have to type the following JavaScript: function checkEmail(theForm) { if (theForm.email1.value != theForm.email2.value)
{ alert('Those emails don\'t match!'); return false; }
else { return true; } return true }
Click "Save" and that's it.