Home › Forums › Quform WordPress › Redirect to with prepopulated entries answers site
- This topic has 2 replies, 2 voices, and was last updated 2 years, 2 months ago by utmedia.
- AuthorPosts
- September 1, 2022 at 1:19 pm #34670utmediaParticipant
Hi,
wordpress
I try to get the results of the entries of a form into a new site, which will be my result site like it is shown in sended emails.
Following your ducumentation, i made a php snippet to integrating the quform entries:add_filter('quform_post_process_1', function(array $result, Quform_Form $form) { $session = Quform::getService('session'); $session->set('forms.' . $form->getId(), $form); return $result; }, 10, 2); add_shortcode('quform_all_form_data', function($atts) { if ( ! class_exists('Quform')) { return ''; } $atts = wp_parse_args($atts, array('id' => '0')); $session = Quform::getService('session'); $form = $session->get('forms.' . $atts['id']); if ( ! $form instanceof Quform_Form) { return ''; } return $form->replaceVariables('{all_form_data}', 'html'); });
and set the shortcode of the form id=2 onto a new site:
[quform_all_form_data id="2"]
The new “result”-Page doesn’t show the Entries.
- This topic was modified 2 years, 2 months ago by utmedia.
September 2, 2022 at 9:38 am #34672AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
September 2, 2022 at 9:54 am #34673utmediaParticipantHi Ally,
thank you for the quick reply. The change of the process into 2 did the trick. It is working now.
To answer your question, it is another page in wordpress belonging to the same url. Just a resume page where the applicator can see his/her entries.
Thank you for the further informations about using a Query string. It comes in Handy if the case will occur.Greets
Uwe - AuthorPosts
- You must be logged in to reply to this topic.