Developer
Supported
AJAX Form Validator
Back to this add-on's main page
View Other Add-ons From Laisvunas
Confirmation Fields?
General
|
upshot
|
| Posted: 03 November 2011 12:43 PM |
|
|
|
|
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
|
| Posted: 03 November 2011 12:56 PM |
# 1
|
|
|
Developer
|
Hi,
That’s excellent idea! I will add this functionality during next couple of days. Stay tuned.
|
|
|
|
|
upshot
|
| Posted: 03 November 2011 02:41 PM |
# 2
|
|
|
|
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
|
| Posted: 04 November 2011 05:27 PM |
# 3
|
|
|
|
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
|
| Posted: 05 November 2011 12:08 PM |
# 4
|
|
|
Developer
|
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.g. that of registration form
{/exp:ajax_form_validator:script}
|
|
|
|
|
upshot
|
| Posted: 05 November 2011 03:42 PM |
# 5
|
|
|
|
Yes, sorry. ETA = Estimated Time of Arrival.
We’ll try out the code and post our results here. Thanks very much!
|
|
|
|