• Resolved dccorp

    (@dccorp)


    Hi,

    Is it possible to display a value collected in a form field, in a different post/page?
    Specifically, I need to display a calculated hidden field value from a form, in another, different post/page.

    Thank you,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @dccorp,

    I hope you’re doing well!

    Out of the box, it is not possible I’m afraid. This will require a lot of custom coding. Please clarify, as the calculated field is varying per user submission, do you wish to show this field for the user that has submitted the form?

    Please advise,

    Kind regards,
    Nastia

    Thread Starter dccorp

    (@dccorp)

    Thank you for reply. Yes, I need to show the calculated result of an already submitted form to the user that submitted the form.

    I have found the solution by passing the parameter in the URL, instructions here:

    https://premium.wpmudev.org/forums/topic/get-and-use-forminator-quiz-form-data-on-other-pages/

    and with url-params plugin.

    In fact, I have solved a previous question about timed forms (for IQ tests), using the “timed content” plugin to control the timing of a forminator form. The problem was that after the time is up, the form is “closed” (hidden) but still I needed to solve two things:

    1. to display the results, but the form was now fully hidden. The solution was the one mentioned above (thank you forminator) by passing the results to the success page in URL
    2. to force the form to be submitted when the time is up. The solution was a small javascript snippet inserted as a block into the page that contains the form, after the form shortcode:

    <script type="text/javascript"> 
    setTimeout(func, XXXX);
    function func() {
        document.getElementById('forminator-module-YYYY').submit();
    }
    </script>

    where XXXX is the time to wait until the form must be submited in miliseconds and YYYY is the forminator form number (from the shortcode).

    Now everything it’s working, but I really would appreciate your opinion.

    Thank you,

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @dccorp ,

    Now everything it’s working, but I really would appreciate your opinion.

    I’m sorry for the delay on our side.

    So your solution is working yes? Or are you seeking now something different?
    Solution with the parameters in the URL is valid and there is no reason to not use it ??
    As for submitting the form – since there is no way to do that in the Formintaroe by default, then your code that does the work is also good.

    kind regards,
    Kasia

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @dccorp

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’re going to mark this ticket as resolved, if you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display field value in a different post/page’ is closed to new replies.