Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Form validation fields...is it possible?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Testa
Expert

Italy
74 Posts

Posted - 22 Feb 2011 :  00:24:25  Show Profile  Visit Testa's Homepage  Reply with Quote
Hi,

i tried the validation form, but i don't understand the difference between a required field and a simple field.

I need that one or more fields are needed for sending the form, while for the other fields is necessary make a verify only if they are compiled, but they aren't no requested for the send.

For example:
e-mail address: is required. The form is not sent if this field is empty or if it isn't a valid address.
Telephone number: is not required, but if it is compiled, it must be a number.

Is it possible, please?
At the moment i use a custom java script in the head code of the form containing page, and after the check of all needed fields, i have an action that calls a custom php script.

Thanks again.

Stefano.

My Google+ profile:
https://plus.google.com/i/zw25-_gKvTY:jRss3zGURdE

Web sites made in DHTML:

http://terapiabrevestrategica-emilia.it/
http://papaveriepapere-ravenna.com/
http://mp-impianti.net/
http://assistudioperboni.it/

s.dav
Site Admin

Italy
3364 Posts

Posted - 23 Feb 2011 :  19:09:31  Show Profile  Visit s.dav's Homepage  Reply with Quote
Stefano,

you should try using a regular expression formula or a custom code as you already did.

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000