Results 1 to 12 of 12

Thread: passing form values to redirect page (jumpTo)

  1. #1
    New user
    Join Date
    11-20-15.
    Posts
    5

    Default passing form values to redirect page (jumpTo)

    Hi everybody,
    is there a way to get submitted form values and display them onto the form's redirect jumpTo page?
    I've found on this forum some old post in which it seems to be possible with older versions of Contao because it was passing get/post values to the "thank-you" page, but I wasn't able to find any of them using var_dump in the destination page's template...

    Thank you all in advance for you support

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    You can try this one https://contao.org/extension-list/view/inputvar.html

    Edit: Don't forget to disable cache in page settings.
    Last edited by Andreas; 11/20/2015 at 22:52.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  3. #3
    New user
    Join Date
    11-20-15.
    Posts
    5

    Default

    Quote Originally Posted by Andreas View Post
    You can try this one https://contao.org/extension-list/view/inputvar.html

    Edit: Don't forget to disable cache in page settings.

    Hi Andreas, thank you for your support.
    I've seen something about inputvar extension in my previous search for this topic, however honestly I still don't know how/where to retrieve the form submitted data within the destination page...
    Can you please explain how to use it?

    Thanks again

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    What did you try so far? I haven't used it for a long time. I think you can use it on your form redirect page in a text element with e.g.
    Code:
    File value: {{post::myEmail::encodeEmail}}
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  5. #5
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    331

    Default

    That won't work, the POST Data won't be available anymore after the Redirect. You would need to save the values in the Session if you want it on subsequent pages.

  6. #6
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    I've just tested it successfully on 3.5.4. Formfield "email" and in a CE type text "Your email is {{post::email}}".
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  7. #7
    New user
    Join Date
    11-20-15.
    Posts
    5

    Default

    Quote Originally Posted by Andreas View Post
    I've just tested it successfully on 3.5.4. Formfield "email" and in a CE type text "Your email is {{post::email}}".
    It works! I can confirm it o my 3.5.2 installation too.
    Anyway now I've got another question: if I try to get the value for an uploaded file (I need to know the filename) I get nothing.

    I believe it is not possible, isn't it?

    Thank you all once again!

  8. #8
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    And what brings {{post::myUploadField}}?
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  9. #9
    New user
    Join Date
    11-20-15.
    Posts
    5

    Default

    Quote Originally Posted by Andreas View Post
    And what brings {{post::myUploadField}}?
    yes, I've tried that and got nothing..

  10. #10
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  11. #11
    New user
    Join Date
    11-20-15.
    Posts
    5

    Default

    Yeah! that was helpful!
    I wasn't able to find it since the post is in german language... I had then to use google translator as unfortunately happens here and there within the Contao community...
    For those interested in using the linked extension, to be able to run it in Contao v3, I had to create the autoload.php file in its config folder, something like this:

    (...)
    PHP Code:
    /**
     * Register the classes
     */
    ClassLoader::addClasses(array
    (
        
    'FormFileUploadExtended' => 'system/modules/FormFileUploadExtended/FormFileUploadExtended.php',
    )); 
    I would like to suggest the implementation of those uploadfield infos in the very useful inputvar extension
    Thank you for your

  12. #12
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    Yes, I knew that you have to translate it but also knew that you will get the important parts

    Feel free to create tickets in the appropriate repositories.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •