Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use the same gravity form ID multiple times on the same page

The page setup that I have at the moment is that I have a gravity form that caters for event registration. In this form I have a hidden field that tells me which event the use has registered for.

I display multiple event registrations on one page, so I use the same form multiple times on the same page, but each one with a different "event_name" value.

The problem I'm having is that because each form has the same id, once they submit a registration for one event, all the forms show the "thank you" message and don't allow a resubmit.

Ideally I would like them to not be able to resubmit, but still be able to submit the forms for the other events.

The events are dynamically created, so I can't have a specific form for each event.

Any ideas would be most welcome!

like image 970
Brian Avatar asked Nov 11 '22 19:11

Brian


1 Answers

I have done something similar and simply used the conditional part of Gravity Forms. This way, you don't display the form multiple times, but you only show certain fields after they tell you what event they are registering for.

like image 138
Jme Avatar answered Nov 15 '22 04:11

Jme