Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Submit repeating-Form with Text Link

Posted 19 Feb 2002 16:45:13
1
has voted
19 Feb 2002 16:45:13 Peter R posted:
Hello,

I'd like to be able to submit a form created in a repeat region with a text link.
I'm able to do this when the form is not in a repeat region using this:

[a href="javascript:document.formname.submit()"]Submit Form[/a]

(I replace the square brackets with less/greater than symbols)

But when this link is used in a repeat region and then clicked it produces
an error(javascript I think). I realize this is probably because the form is repeated 10 times
on the page, and all the forms have the same name(this is of course
necessary, as these forms pass values to the detail page).

But the standard "image field" submit button still works in a repeat region so I'm
hoping there is also another way to make a text link submit a form that will
work in a repeat region.

Anyone know how?

Thanks!

Peter

Reply to this topic