Redirect to with prepopulated entries answers site

Home Forums Quform WordPress Redirect to with prepopulated entries answers site

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34670
    utmedia
    Participant

    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 4 weeks ago by utmedia.
    #34672
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #34673
    utmedia
    Participant

    Hi 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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2022 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy