Forum Moderators: open
For example, if your users are selecting and submitting only one item from a list of radio inputs, say 1-5 , but the items aren't submitted to a common url specified as the action. Items 1,2 and 3 have target url [1...] and items 4 and 5 have target url [2....]
Is there a way around this without using more than 1 form?
Use an onSubmit event on the form. In that function, check the form values to decide which URL you want to submit to.
However, I'm a little fuzzy on exactly what's going on here.
Usually, radio buttons are used when the user is making a choice of one thing out of several.
How is this being done with two forms and three radio buttons in one and two in the other?
Is the user prevented in any way from making a selection in both?