checkbox issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrboyer79
    New Member
    • Dec 2006
    • 13

    checkbox issues

    hello all,
    i have a checkbox on a page (page 1) where when you check it, some text fields appear. if you uncheck the box, the text fields hide. the user then clicks a submit button to go on to the next page (page 2). the issue i'm having is that if the user checks the box and then goes to page 2, and then decides to go back (we don't give them the option, but they can always click the browser back button), the checkbox is unchecked. is there a way to set the checkbox that if it's checked it will remain checked upon returning to the page 1?

    please assist!
    thanks!
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by mrboyer79
    hello all,
    i have a checkbox on a page (page 1) where when you check it, some text fields appear. if you uncheck the box, the text fields hide. the user then clicks a submit button to go on to the next page (page 2). the issue i'm having is that if the user checks the box and then goes to page 2, and then decides to go back (we don't give them the option, but they can always click the browser back button), the checkbox is unchecked. is there a way to set the checkbox that if it's checked it will remain checked upon returning to the page 1?

    please assist!
    thanks!
    What you basically need is a method of passing data between 2 html pages. That has already been asked here. I think you can also use a cookie for that.

    Comment

    • mrboyer79
      New Member
      • Dec 2006
      • 13

      #3
      Originally posted by r035198x
      What you basically need is a method of passing data between 2 html pages. That has already been asked here. I think you can also use a cookie for that.
      I don't know that I explained this correctly, allow me to try again:

      on Page 1 there is a check box that when clicked displays three hidden text boxes and radio buttons. on unclicking, they go back to hidden. the user can click a submit button to move to the next page. once on Page 2, if the user uses the browser back button, they will return to Page 1. upon return to Page 1 the check box is still checked, but the fields underneath are hidden. if the user unchecks the box, the fields reappear. fortunately, the fields remained filled. but upon returning to Page 1 i need the boxs to remained checked and the fields to be displayed. i hope this clarifies my problem.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by mrboyer79
        I don't know that I explained this correctly, allow me to try again:

        on Page 1 there is a check box that when clicked displays three hidden text boxes and radio buttons. on unclicking, they go back to hidden. the user can click a submit button to move to the next page. once on Page 2, if the user uses the browser back button, they will return to Page 1. upon return to Page 1 the check box is still checked, but the fields underneath are hidden. if the user unchecks the box, the fields reappear. fortunately, the fields remained filled. but upon returning to Page 1 i need the boxs to remained checked and the fields to be displayed. i hope this clarifies my problem.
        If you were using a back button then the thread I suggested might help since you will want to pass the value of the checkbox back to page 1. For using the browser's back button I think setting a cookie would solve your problem

        Comment

        • mrboyer79
          New Member
          • Dec 2006
          • 13

          #5
          thanks for the advice. i'll give it a try and post my findings...

          Comment

          Working...