Google Answers Logo
View Question
 
Q: Frontpage 2002, Form validation problems ( Answered,   1 Comment )
Question  
Subject: Frontpage 2002, Form validation problems
Category: Computers > Software
Asked by: chieferman-ga
List Price: $4.50
Posted: 18 May 2005 18:44 PDT
Expires: 17 Jun 2005 18:44 PDT
Question ID: 523162
I have created a web registration form with validation on several
fields.  I have a confirmation page if all is correct.  I did not
create a page for missing data since frontpage creates a default page
that displays the items that don't meet the validation.  The problem
is that page has a link back to my form but it returns the user to the
page with all the previous data cleared.  They have to enter all the
data again.  I can create a failure page but I can only list the
fields that have validation and not display which one are wrong.
One interesting and odd thing occurred, for some unknown reason I was
getting individual popup validations for a short time then they
disappeared.???  I don't know what I did to create or delete them.
I am not a coder, just a fairly educated user.
I would like to just have the default validation error page return the
user to a form that still has data.
Answer  
Subject: Re: Frontpage 2002, Form validation problems
Answered By: rolnick-ga on 22 May 2005 10:09 PDT
 
Hi

I'm pretty sure that using Javascript history back button will fill your needs.
Here is the HTML code for it:

<a href="javascript: history.go(-1)">Back</a>

Using this code you can create a link that will take user to previous
viewed page without clearing form fields. You should of course enter
this in code view.
I think that you can even, instead inserting such button, write
"Please use your browser back button and correct the form" - it may
look unprofessional, but many pages use such "technique".

Regarding pop-ups - you have to apply some form field validation rules
on the form fields, then you will get javascript pop-ups informing
about not filled fields. I think that they disappeared because you
created custom "failure page" which replaces them. My suggestion - do
a little test: create new page and insert simple form with one text
field into it, apply some field validation (by right clicking and
selecting appropriate option) and test, if the javascript validation
pop-up will show (it should show). Next, create custom failure page
and check if the pop-up will be shown.


Additional links:

Discussion about similar problem on microsoft.public.frontpage.client
http://tinyurl.com/86nle

Microsoft training, tutorials, tips and how-to's about Frontpage
http://office.microsoft.com/en-us/FX010858021033.aspx

Request for Answer Clarification by chieferman-ga on 22 May 2005 14:39 PDT
The default page that Frontpage creates seems to be created on the fly
and not saved as page.  I do not have access to add any code to it. 
So I can't add the back button code to it.

I added form field validation from the start without having a failure
page.  The popups never showed up until I created a failure page, then
they went away after a few minutes.  (very strange indeed)

I have since my post created a failure page with a back button but
don't know how to code it to display only the fields that don't meet
the validation criteria.

Clarification of Answer by rolnick-ga on 23 May 2005 00:40 PDT
Hi

Sorry, that my answer didn't fulfill your needs. Let's get back to the topic.
Javascript validation works as default way of checking forms in FP (I
was wrong in my first answer, sorry).
It may not work if:
- you preview it using internal preview (please preview in browser)
- you preview not published page that uses FrontPage Extensions
(please preview published pages on server)
- you edit the form code "by hand" in FrontPage or another tool (if
you edit it in another tool then it will likely fail)

As for creating custom error page - I just signed up for FrontPage
Extension enabled server and I will check this problem out, in
meantime please post URL of the not working form.

I also strongly suggest to create new form with some validation and
check if it will work.

Thanks
Comments  
Subject: Re: Frontpage 2002, Form validation problems
From: lakheras-ga on 20 May 2005 03:35 PDT
 
First of all you have to store all of your field values to session
variables,for that you have to use Server side script i.e. ASP etc. If
incase your data is not validated properly then you can redirect them
to previous page and restore the value of each field through Session.

If needed i will provide you the source code for that

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy