Skip to main content
Inspiring
June 28, 2008
Question

Required page entry

  • June 28, 2008
  • 5 replies
  • 486 views
I have a form that uses cflocation url to go to another form after the first form is submitted and dat inserted into tables. h

This page contains three radio buttons and some input fields. There are also three buttons, back, submit, and home.

What is happening is that when this page is reached, the user clicks the back or home button, or the back button on the browser, to exit the page and never fill it out. This causes alot of problems.

How / what can I do so that if the do not fill out the page and exit, a popup error message tells then that they must fill out the form /page ?

Or is there a better way to do this ?

Thanks
    This topic has been closed for replies.

    5 replies

    tclaremont
    Inspiring
    July 2, 2008
    After re-reading the question, you say that it causes lots of problems. What kind of problems?

    If the issue is that your program commits data to a database based on the contents of the first form, and then DOES NOT complete the second form, resulting in only partial information in your database, then the solution is to store all of your data in session variables and make all database writes once all forms have been completed. Doing your database writes after each form submission, when part of a multiform application, is bound to cause issues such as the ones you describe.
    Inspiring
    July 2, 2008
    This won't solve the problem, but it might help a little bit.
    Instead of going to the second form, have the first form go to a page which uses javascript to automatically redirect to the second form. That way, when a novice user clicks back, he goes to this page which automatically takes them back to the second form (the way to bypass this is to quickly hit the back button twice).

    However, please note that some users might find this annoying.
    tclaremont
    Inspiring
    July 2, 2008
    This is one of those situations where you have a "people problem" rather than a "computer problem". Come to think of it, that relates to most issues, doesnt it?

    If this is a public facing site where educating the users is not practical, then sometimes the solution is to use a strategy of enticing people to complete the form. You are going to have to use your imagination here.



    Inspiring
    July 2, 2008
    quote:

    Originally posted by: trojnfn
    I have a form that uses cflocation url to go to another form after the first form is submitted and dat inserted into tables. h

    This page contains three radio buttons and some input fields. There are also three buttons, back, submit, and home.

    What is happening is that when this page is reached, the user clicks the back or home button, or the back button on the browser, to exit the page and never fill it out. This causes alot of problems.

    How / what can I do so that if the do not fill out the page and exit, a popup error message tells then that they must fill out the form /page ?

    Or is there a better way to do this ?

    Thanks

    This is not a computer problem and there are no computer solutions. The best you can hope for from a progamming perspective is to identify who is doing it and passing the info to those who enforce rules.
    Inspiring
    July 2, 2008
    validate your form objects using javascript