[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How retain field entry when utilizing validation?

Posted on 2005-04-26
5
Medium Priority
?
162 Views
Last Modified: 2013-12-24
I have set a couple field on a form for validation.  If the user doesn't fill the fields in they get a validation error page and then can click a lick to go back to the form.  But all of the field entries they made the first time are gone.  How can I retain them?

--Steve
0
Comment
Question by:SteveL13
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:rcmb
ID: 13872486
If the link you are using redirects to the page then you will reload the page and lose all of your data.

Instead change your link to read:

javascript:history.go(-1)

this is the same as using the back button.
0
 

Author Comment

by:SteveL13
ID: 13876103
To rcmb:

I would do this if I could find the page the link is on.  I guess its a default htm page but I can't locate it.  The address reads:

http://www.mydomain/folder/_vti_bin/shtml.dll/Default.htm

I can't find this.  Do you know where it "lives"?
0
 
LVL 12

Expert Comment

by:rcmb
ID: 13883119
Oh, so you are using the default frontpage validation page. You should create your own confirmation page and have all the fields displayed on the confirmation page and then insert your link to go back if there are problems.

I can send you an example if you desire.

RCMB
0
 

Author Comment

by:SteveL13
ID: 13884182
Yes, please do.  I'd appreciate it.

--Steve
0
 
LVL 12

Accepted Solution

by:
rcmb earned 1000 total points
ID: 13885514
Cut and paste the following into two files and save them with the names provided.

File 1 -- named submission_form.htm --

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>This is a form that will submit</title>
</head>

<body>

<p>This is a form that will submit to a confirmation page.</p>
<p>&nbsp;</p>
<form method="POST" action="--WEBBOT-SELF--">
      <!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Builtin-Fields U-Confirmation-Url="confirmation.htm" -->
      <p>Last Name: <input type="text" name="LastName" size="20"></p>
      <p>First Name: <input type="text" name="FirstName" size="20"></p>
      <p>City: <input type="text" name="City" size="20"></p>
      <p>State: <input type="text" name="State" size="20"></p>
      <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
<p>&nbsp;</p>

</body>

</html>

File 2 -- named confirmation.htm --

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>This is a confirmation page that</title>
</head>

<body>

<p>This is a confirmation page that displays the results of the submitted form</p>
<p>Last Name: <!--webbot bot="ConfirmationField" S-Field="LastName" --></p>
<p>First Name: <!--webbot bot="ConfirmationField" S-Field="FirstName" --></p>
<p>City: <!--webbot bot="ConfirmationField" S-Field="City" --></p>
<p>State: <!--webbot bot="ConfirmationField" S-Field="State" --></p>
<p>If this information is incorrect please click
<a href="javascript:history.go(-1)">here</a> to correct.</p>

</body>

</html>
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question