Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 05-20-2011, 09:17 AM   #1
Join Date: May 2011
Posts: 2
Question How to validate 2 inputs, one must be filled but the opposing field can be blank?

Hello everyone,

I am new to spry and trying to update some code for a friend but I can not work out the validation conundrum I am currently experiencing.

I have two fields, both plain text inputs; I would like to be able to validate them both but the problem is that I only require one of them to be validated at any one time.

For example, Home Tel or Mobile Tel: The user can enter either, and are not required to enter both, but must enter at least one of the fields to complete the form.

It would be very much appreciated if any one could find an answer, if not you still have my thanks for trying.

Hopefully I can get past the problem without replacing the spry validation, as it is working so well. Although if forced to by my problem I will eventually admit defeat and use a form of JQuery validation.


All the best

Matt Richards
mrichards is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 01:25 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com