Plugin

Developer
Supported

EE 1
EE 2
AJAX Form Validator

Back to this add-on's main page
View Other Add-ons From Laisvunas

     

You must be logged in to post.

Confirmation Fields?

General

upshot
upshot

Is there any way to do a “Confirm Password” type of field where we verify that Field A is the same as Field B?

Laisvunas
# 1
Developer
Laisvunas

Hi,

That’s excellent idea! I will add this functionality during next couple of days. Stay tuned.

upshot
# 2
upshot

Please feel free to use us as a beta tester!  We have a site launching next week and we’d love to use a feature like that.

upshot
# 3
upshot

Hi Laisvunas,

Do you by chance have an ETA for this feature?  If there’s no ETA we will likely have to go with another solution.

Laisvunas
# 4
Developer
Laisvunas

Hi,

What means acronym ETA - estimated time of arrival?

The feature you need has been added in the version 1.5.1. You will need to use parameters “required_similarity_field” and “required_similarity_type” of the “ajax_form_validator” single variable (see docs).

Grab the version 1.5.1 and use the code as this:

{exp:ajax_form_validator:script entry_id="none" form_id="ajax_registration_form" submit_button_id="ajax_registration_submit_button" async_url="{homepage}/technical/embed_ajax_form_validator_async/" parse="inward"}

{ajax_form_validator field
="password_confirm" required="yes" field_required_alert_text="ERROR!\\nPassword confirm field cannot be empty!" invalid_indicator_id="password_confirm_field" invalid_class="invalidated" javascript_alert="yes" required_similarity_field="password" required_similarity_type="same" required_similarity_alert_text="ERROR!\\nThe password and password confirmation do not match."}

Some code
e.gthat of registration form

{
/exp:ajax_form_validator:script} 
upshot
# 5
upshot

Yes, sorry.  ETA = Estimated Time of Arrival.

We’ll try out the code and post our results here.  Thanks very much!