On my WordPress website I have a list of regions on a page that each have a button opening the same form in a fancybox lightbox.

Using Gravity Forms I want to capture the region parameter (as seen below) by adding a variable that is a predetermined and truncated version of the section title, thus providing us with a better understanding of the button that was clicked.

The problem is Fancybox skips the parameter and opens the inline form, thereby bypassing the region parameter all together.

<a class="button" href="?region=<?php echo $region; ?>#contact-form" id="inline">Contact</a>

Is there a way to fix this without using ajax?

As I type this out I realize I should try an alternative to the inline form style, which I will do now and post my results.

Read more here: Open inline fancybox that captures parameter item from page


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: