Forum Replies Created
- AuthorPosts
schmucki
ParticipantHi
What we are planning exactly is as follows.
We use a page template in WordPress. The template contains the basic structure of our site as an HTML framework to hook into via Javascript.
When loading the template page, a JS is used on the frontend side to fetch content via WordPress API, filter it and attach it to the HTML structure as a table. This dynamically generated content also includes buttons that open a popup containing the Quform form. Depending on which button is clicked, the Quform form is to receive data that is to be sent as an email in addition to standard fields like name, adress, etc.
So far I have tried to place the form in the popup via shortcode:<div class=“quform-popup-content”><?php echo do_shortcode('[quform id=“14” name=“Contact form Product-Finder”]'); ?></div>
which is generated by the template on the server side and is set to display:none; until hitting the button. I then addressed a hidden field contained in the form via JS and reset the “value” property to:
<input type=“hidden” name=“quform_14_17” value=“XXX”>
However, when I submit the form, the hidden field is empty, so no data is transmitted.
So how can I transmit values to the already integrated form at runtime? Since PHP is generated on the server side, I can only include the form when the page is loaded, right?I would be very happy to receive a suggestion for a suitable workflow.
schmucki
ParticipantHi
It is a popup form we’re using. I’ll try with this documentation you sent us https://support.themecatcher.net/quform-wordpress-v2/guides/customization/dynamic-default-value/.
Thanks alot
March 24, 2023 at 8:21 am in reply to: Problem Submit “An error occurred” “Refresh the page and try again” #35280schmucki
ParticipantHello
Deactivating the CSRF Protection worked so far. But for security reasons we need the forms to be working with protection.
How can I troubleshoot the issue and find the source of the problem?
Best regards
Schmucki- This reply was modified 2 years, 2 months ago by
schmucki.
March 23, 2023 at 8:24 am in reply to: Problem Submit “An error occurred” “Refresh the page and try again” #35272schmucki
ParticipantThanks you for testing!
I had turned off CSRF Protection, I hope that solved the problem.
I will wait to see, if users still get the error.March 22, 2023 at 3:51 pm in reply to: Problem Submit “An error occurred” “Refresh the page and try again” #35260schmucki
ParticipantWe have created this page for testing purposes: https://www.bossinfo.com/quform-formular-test/ (the form doesn’t work globally).
- This reply was modified 2 years, 2 months ago by
schmucki.
- This reply was modified 2 years, 2 months ago by
- AuthorPosts