This is a discussion on "redirecting form based on radio button values" within the JavaScript Forum section. This forum, and the thread "redirecting form based on radio button values are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
redirecting form based on radio button values
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
redirecting form based on radio button values
I am using the following function to alter visibility of proceed links to move from one step in a form to another based on text field validation:
So I guess what I need to is be able to change that variable on the fly if they select that specific radio button... ? |
|
|
|
#2
|
||||
|
||||
|
Re: redirecting form based on radio button values
You could try adding this to all the radio buttons.
onclick="updateToggleDive('nameOfDiv')"; so you on the work_type_im you can add the name of the replacement to 'requestDate' where 'nameOfDIv' is and put 'requestDate' on all the others. Give the proceed link an id of "proceedLink" or something Then after the radios add this
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: redirecting form based on radio button values
It doesn't seem to be working although I may have misunderstood your suggestion. This is how I have interpreted:
|
|
#4
|
||||
|
||||
|
Re: redirecting form based on radio button values
Need to fix this line, it has proceedDiv which doesn't exist
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#5
|
|||
|
|||
|
Re: redirecting form based on radio button values
Quote:
Aside from these I cannot seem to figure out where its going wrong... |
|
#6
|
||||
|
||||
|
Re: redirecting form based on radio button values
Woops
![]() Didn't close the function
</script>
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#7
|
|||
|
|||
|
Re: redirecting form based on radio button values
Quote:
Now since I have redirected the user to another section in the form, if they wish to use the back button, I need to also populate that backLink with the variable to take them back to the step with the radio group... Would I just do this?
|
|
#8
|
||||
|
||||
|
Re: redirecting form based on radio button values
Yup, that would do it
Glad it works
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] large radio button form submit | chriscant | JavaScript Forum | 7 | Oct 25th, 2007 09:03 |
| Any way to use an image for a radio button? | masonbarge | Web Page Design | 23 | Jan 6th, 2007 09:06 |
| Help needed with creating a radio button form | sing2trees | PHP Forum | 1 | Nov 13th, 2006 05:52 |
| Setting Form Values to Previously Entered Values | masonbarge | PHP Forum | 6 | Oct 17th, 2006 17:36 |
| problem with radio button in form validation | augustus_emperor | JavaScript Forum | 1 | Apr 22nd, 2004 13:08 |