• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: AJAX email validation

AJAX email validation 15 years 11 months ago #7498

Is there a way to add AJAX email validation to RSForm module? I would love to have online email verification to avoid mistakes in emails and decrease spam submissions.
The administrator has disabled public write access.

Re:AJAX email validation 15 years 11 months ago #7587

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello,

This can be done but it requires a lot of custom scripting. An alternative would be the email verification with 2 email fields. Here is a link to the documentation where you have a script that compares 2 fields:

www.rsjoomla.com/customer-support/docume...sing-javascript.html

Regards!
The administrator has disabled public write access.

Re:AJAX email validation 15 years 3 months ago #9670

Hi there,

Thanks for the ajax code. I followed the guidelines. Got a message on test.

Could not instantiate mail function

Removed the extra email and the code and re-did form layout

Still getting the error message!

Help! My form is now broken!

www.rsjoomla.com/components/com_kunena/t.../emoticons/dizzy.png
The administrator has disabled public write access.

Re:AJAX email validation 14 years 4 months ago #12402

  • xingu
  • xingu's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Thank you received: 1
I am looking to validate emails in a form. Your example is confusing. It seems like this form in your example is only to compare emails not for adding to an existing form. Any chance you can add this function to the extension. I feel it is a common feature and very useful. If someone types in the wrong email in a contact form there is no way to contact them.

Thanks
The administrator has disabled public write access.

Re:AJAX email validation 13 years 6 months ago #15131

  • t.koch
  • t.koch's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Is there already a solution? I also want to check two email addresses for equality.
Thanks, Thomas
The administrator has disabled public write access.

Re:AJAX email validation 11 years 11 months ago #23543

  • ceschia1
  • ceschia1's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I had a task to compare 2 passwords. Here is how I did it, using jQuery.

Nothing is to be applied in additional Attributes to the fields.
But you have to correct in the code the 2 IDs, namely: 'password' and 'password1' !
In RS Form Pro \ Properties \ CSS and Javascript you need to enter the following JS code:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#password, #password1').keyup(function() {
//remove the message
  jQuery('li.rsform-block-password1').find('span#nomatch').remove();
    if (jQuery('#password').val() == jQuery('#password1').val())  {
      //YES - add OK message
      jQuery('li.rsform-block-password1').find('.formBody').append('<span id="nomatch" style="color:green;">&nbsp;&nbsp;okay!</span');
    } else
    {
      //NO - add BAD message
      jQuery('li.rsform-block-password1').find('.formBody').append('<span id="nomatch" style="color:red;">&nbsp;&nbsp;The 2 passwords don\'t match!</span');
 
    }
  }
);
});
</script>
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!