Functionality- Preview Form Before Submission to DB or file

J

Jim S

There doesn't appear to be existing functionality in FP 2003 to allow a form
to be previewed before submission, at least I can't figure it out.

Would add in code to provide this functionality exist or is the form limited
to posting and confirmations only?

Ideally a Continue or Preview button might replace the Submit button on the
form page and it would generate a page with the current field entries for
review before the Submit button was pressed.

Or maybe a framework like online shopping which previews the order page
before final Order Button is clicked?

Any ideas

Thanks

Jim S
 
T

Thomas A. Rowe

You would have to custom write the asp script to store the values in a session so that they can be
reviewed and then allow corrections, and then be posted to the database with any updates.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
J

Jim S

Thanks for the info.

I found some JavaScript code and checking with the javascript functions for
variables and document.write I was able to get a preview page coded for our
form.


The original information came from a jamescover posing here
http://www.codingforums.com/archive/index.php?t-44770.html

jamescover09-16-2004, 10:22 PM
Just a simple example, without any formatting:

<script type="text/javascript">
<!--

function getVar(){

var content = document['oFrm']['oTxt'].value;
var newWin = window.open("","","");
newWin.document.open();
newWin.document.write(content);
newWin.document.close();
}

//-->
</script>




<form name="oFrm">
<textarea name="oTxt" cols="25" rows="4"></textarea>
<input name="oBtn" type="button" value="Get Results"
onClick="javascript:getVar();" />
</form>


-james



http://www.mediacollege.com/internet/javascript/basic/document-write.html
provided the examples for getting multiple variables to show up on the
preview page with Field labels
 
J

Jim S

Thanks Thomas. I don't have any real experience with asp but I found some
JavaScript that would provide the functionality. I posted in reply to my
original post
 
T

Thomas A. Rowe

Ok, but how are you then process the form data?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Jim S said:
Thanks for the info.

I found some JavaScript code and checking with the javascript functions for
variables and document.write I was able to get a preview page coded for our
form.


The original information came from a jamescover posing here
http://www.codingforums.com/archive/index.php?t-44770.html

jamescover09-16-2004, 10:22 PM
Just a simple example, without any formatting:

<script type="text/javascript">
<!--

function getVar(){

var content = document['oFrm']['oTxt'].value;
var newWin = window.open("","","");
newWin.document.open();
newWin.document.write(content);
newWin.document.close();
}

//-->
</script>




<form name="oFrm">
<textarea name="oTxt" cols="25" rows="4"></textarea>
<input name="oBtn" type="button" value="Get Results"
onClick="javascript:getVar();" />
</form>


-james



http://www.mediacollege.com/internet/javascript/basic/document-write.html
provided the examples for getting multiple variables to show up on the
preview page with Field labels

Jim S said:
There doesn't appear to be existing functionality in FP 2003 to allow a form
to be previewed before submission, at least I can't figure it out.

Would add in code to provide this functionality exist or is the form limited
to posting and confirmations only?

Ideally a Continue or Preview button might replace the Submit button on the
form page and it would generate a page with the current field entries for
review before the Submit button was pressed.

Or maybe a framework like online shopping which previews the order page
before final Order Button is clicked?

Any ideas

Thanks

Jim S
 
J

Jim S

We are submitting to a csv file, (using FP and web bots for validation) for
secure save and link to a local DB that checks for duplicates, etc before
final submission to our client DB

Thomas A. Rowe said:
Ok, but how are you then process the form data?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Jim S said:
Thanks for the info.

I found some JavaScript code and checking with the javascript functions for
variables and document.write I was able to get a preview page coded for our
form.


The original information came from a jamescover posing here
http://www.codingforums.com/archive/index.php?t-44770.html

jamescover09-16-2004, 10:22 PM
Just a simple example, without any formatting:

<script type="text/javascript">
<!--

function getVar(){

var content = document['oFrm']['oTxt'].value;
var newWin = window.open("","","");
newWin.document.open();
newWin.document.write(content);
newWin.document.close();
}

//-->
</script>




<form name="oFrm">
<textarea name="oTxt" cols="25" rows="4"></textarea>
<input name="oBtn" type="button" value="Get Results"
onClick="javascript:getVar();" />
</form>


-james



http://www.mediacollege.com/internet/javascript/basic/document-write.html
provided the examples for getting multiple variables to show up on the
preview page with Field labels

Jim S said:
There doesn't appear to be existing functionality in FP 2003 to allow a form
to be previewed before submission, at least I can't figure it out.

Would add in code to provide this functionality exist or is the form limited
to posting and confirmations only?

Ideally a Continue or Preview button might replace the Submit button on the
form page and it would generate a page with the current field entries for
review before the Submit button was pressed.

Or maybe a framework like online shopping which previews the order page
before final Order Button is clicked?

Any ideas

Thanks

Jim S
 
T

Thomas A. Rowe

Thank for the follow up.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Jim S said:
We are submitting to a csv file, (using FP and web bots for validation) for
secure save and link to a local DB that checks for duplicates, etc before
final submission to our client DB

Thomas A. Rowe said:
Ok, but how are you then process the form data?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Jim S said:
Thanks for the info.

I found some JavaScript code and checking with the javascript functions for
variables and document.write I was able to get a preview page coded for our
form.


The original information came from a jamescover posing here
http://www.codingforums.com/archive/index.php?t-44770.html

jamescover09-16-2004, 10:22 PM
Just a simple example, without any formatting:

<script type="text/javascript">
<!--

function getVar(){

var content = document['oFrm']['oTxt'].value;
var newWin = window.open("","","");
newWin.document.open();
newWin.document.write(content);
newWin.document.close();
}

//-->
</script>




<form name="oFrm">
<textarea name="oTxt" cols="25" rows="4"></textarea>
<input name="oBtn" type="button" value="Get Results"
onClick="javascript:getVar();" />
</form>


-james



http://www.mediacollege.com/internet/javascript/basic/document-write.html
provided the examples for getting multiple variables to show up on the
preview page with Field labels

:

There doesn't appear to be existing functionality in FP 2003 to allow a form
to be previewed before submission, at least I can't figure it out.

Would add in code to provide this functionality exist or is the form limited
to posting and confirmations only?

Ideally a Continue or Preview button might replace the Submit button on the
form page and it would generate a page with the current field entries for
review before the Submit button was pressed.

Or maybe a framework like online shopping which previews the order page
before final Order Button is clicked?

Any ideas

Thanks

Jim S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top