PDA

View Full Version : Submit button that also changes "next_form"?



TroyO
29-Jan-2009, 07:19 PM
(Man, sorry all I just realized I was in the wrong forum when I posted. I can't seem to move it either, or delete. If I mod checks in could you move this to community support, or just delete it and I will repost?)

I have been working with creating a multi page form for a website, and (I think, anyway) I have the concept down of using derived fields to change next_form to point to various html pages.

How might I do that with a submit button, however? Rather than the radio checkboxes I would like to have buttons offering the coice of:

<back> <Submit more> <Go on to the rest of the form>

If anyone has a link or even an idea of what search terms I could use to find out any help is appreciated!

Edit: I forgot to include that I was using this post to get the radio button method working.
http://www.tectite.com/vbforums/showthread.php?p=6586#poststop

Thanks,
Troy

russellr
29-Jan-2009, 10:18 PM
Hi,

I think what you're asking is to have multiple submit buttons and each one sets "next_form" to a different value, thereby choosing which form will be displayed next.

AFAIK the only way to do that reliably is with JavaScript.

In theory, you can just name each submit button "next_field" and then set the value to the page you want:


<input type="submit" name="next_form" value="addresses.htm" />
<input type="submit" name="next_form" value="products.htm" />
From memory, last time I tried this, I found different browsers do different things and it didn't work the way you want on every browser (if any).