Help with form validation

  • Thread starter Thread starter TymaUK
  • Start date Start date
T

TymaUK

Hi one and all

I wonder if any one can help a semi beginner.

I have set up a website with one of the pages containing a form for user to
fill in and submit. The problem I am having is that some of the fields on
the form require certain criteria i.e. must fill in email etc. After they
click submit the form then goes to a custom thank you page etc etc etc.

At present if they fill one of the fields in incorrectly or miss it totally,
after they press submit it just tells them to recheck the form as it has not
been filled correctly. What I want to happen is that if they fill the form
incorrectly I would like some way of telling the user what field in specific
is wrong.

I hope I have explained properly......

If anybody knows an easy answer that's not tooooooo complicated it would be
very much appreciated. As I say I am a beginner so layman's (or idiot)
terms would be useful.

Thanks very much in advance.
TK
 
I believe this would require custom scripting. I don't believe this is
available in the default FP form handler.
 
Do not use the custom error page option, then the user should get a dialog for each field that
doesn't validate when they press the submit button

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
Hi Thomas

Appreciate your reply.....

I did use this way before, but the reason why I stopped using it is because
it's an 'ugly' page, so another question; Is there any way to format this
error page, even if its changing the background colour.

Again

Many thanks.

TK
 
Re-writing Thomas' response, Do NOT use the custom error page option,
then using FP validation will give the user a prompt to correct their
error, and place the cursor in the field in question.
 
Hi Ronx

A little confused....

What I have done is taken out the custom error page (as what I think you and
Thomas suggested) and now when an error is put in the form it goes to
another page, 'Form Validation Error' and then list the fields that have
been entered incorrectly. Not sure what you mean about the cursor being
placed in the error field, as this does not happen.

Thanks

TK
 
Can you provide a URL to this form?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
First, why do you need the page expanded to a size of 2560x1024? I
prefer my browser to be opened at 800x600, and your page only requires
a width of 1024px. My usual reaction to having my browser window
resized to any dimensions is to place the site into the restricted
sites zone, and leave forever. Unless you can restore the original
setting, it is best to let the users resize their browsers.

The <form tag is not complete.
In the tag, the attribute onsubmit="" should be
onsubmit="return FrontPage_Form1_Validator(this)"
All the JavaScript to do as Thomas and I described is in place, it
just is not called.
 
Thanks Ron

I usually have the page automatically resize to whatever the users
resolution is by unticking the table width in the table properties, but I
made some changes last night and forgot to untick the table width before
publishing.

I have just done what you said and it works wehey!!!!

Thank you very very very much indeed, if I could send a beer electronically
to you and Thomas I would!!!!

Best regards
TK
 
Hey Ron, Thomas & anybody else!

Have just got home to try at do what you suggested, but when I go to HTML
view in FP I cannot find the onsubmit="". Its is there however when I view
source directly from the webpage.

What now.

Thanks
Pete
 
Back
Top