Forums
This topic is locked
Form fld required IF a specific radio btn is click
Posted 06 Jan 2005 18:00:58
1
has voted
06 Jan 2005 18:00:58 Mitchel Tendler posted:
Hi,I need to make 5 text fields mandatory IF a specific radio button is selected...any tips?
What I have is if someone click the OTHER radio button, they need to provide a full address.
Thanks!
Mitch
Replies
Replied 07 Jan 2005 01:27:26
07 Jan 2005 01:27:26 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>I need to make 5 text fields mandatory IF a specific radio button is selected...any tips?
What I have is if someone click the OTHER radio button, they need to provide a full address.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
If your form validation is only client-side (JavaScript), then you'll just check of the radio button is checked, and then see if the other form field value attribute have values.
If your form uses any server-side validation, then you need to follow the same procedure as above (JS), but just in your Server Model (PHP,ASP,.NET,CFML,JSP).
~~~~~~~~~~~~~~~
Chris Charlton
Sr. Developer - www.fingerprintMedia.com
What I have is if someone click the OTHER radio button, they need to provide a full address.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
If your form validation is only client-side (JavaScript), then you'll just check of the radio button is checked, and then see if the other form field value attribute have values.
If your form uses any server-side validation, then you need to follow the same procedure as above (JS), but just in your Server Model (PHP,ASP,.NET,CFML,JSP).
~~~~~~~~~~~~~~~
Chris Charlton
Sr. Developer - www.fingerprintMedia.com
Replied 07 Jan 2005 01:32:11
07 Jan 2005 01:32:11 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>If your form validation is only client-side (JavaScript)...
If your form uses any server-side validation...(PHP,ASP,.NET,CFML,JSP).<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Also, anyone looking for an extension suite that does both client & server-side form validations, then you'll really want to look into <b>WA Validation Toolkit</b> - www.webassist.com/Products/ProductDetails.asp?PID=33, also comes in <b>Macromedia DRK vol.9</b> (which will be going bye-bye this 2005).
~~~~~~~~~~~~~~~
Chris Charlton
Sr. Developer - www.fingerprintMedia.com
If your form uses any server-side validation...(PHP,ASP,.NET,CFML,JSP).<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Also, anyone looking for an extension suite that does both client & server-side form validations, then you'll really want to look into <b>WA Validation Toolkit</b> - www.webassist.com/Products/ProductDetails.asp?PID=33, also comes in <b>Macromedia DRK vol.9</b> (which will be going bye-bye this 2005).
~~~~~~~~~~~~~~~
Chris Charlton
Sr. Developer - www.fingerprintMedia.com
Replied 07 Jan 2005 02:54:00
07 Jan 2005 02:54:00 Chris Charlton replied:
Also, there's <b>PHP Form Validation Pack - VDaemon Lite</b> - www.dmxzone.com/showDetail.asp?TypeId=3&NewsId=4490
~~~~~~~~~~~~~~~
Chris Charlton
Sr. Developer - www.fingerprintMedia.com
~~~~~~~~~~~~~~~
Chris Charlton
Sr. Developer - www.fingerprintMedia.com