We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38917
    • 17 Posts
    Is there a way to display an eForm before sending it? I know you can show the results on the page using the report chunk and specifying
    &noemail=`1` &thankyou=`myReport`
    in the snippet. On this stage is it possible to e-mail gathered data?
    What I'm looking for is:
    1) fill in the form
    2) press "next" which validates the form
    3) display the results in a page - possibility to go back if needed
    4) press "send" wchich e-mails gathered data or "save as pdf" using tcpdf.

    Is it possible to do this using an eForm and not complicating it too much?
      muriz.com
    • I used Javascript to do this, hiding the form section and showing the values that had been entered into the fields. A set of buttons allowed a return to the form view (hiding the review section) and the submit button.

      You could also have the initial form (no mail) submit to a thank-you page containing another eForm snippet that pre-populates the fields from the POST. You can allow the fields to be edited there, or disable them and have a button returning to the original form for editing.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 38917
        • 17 Posts
        Hi Susan, thank you for your reply. It's a really good idea to do it with with Javascript/jquery, I haven't thought about this. As for the second solution I'm not sure if I understand well what you mean. Could you give an example?
          muriz.com