How can the thank you page display submitted values? I'd like to give the users the submission id to reference.

I've tried adding a hidden redirect field with a shortcode GET parameter but haven't got the syntax right.

  • Is {{ craft.app.request.getParam('paramName') }} (docs) what you're after?
    – Oli
    Jul 31 '20 at 7:53
  • That gets me a lot closer to a work around, but I'm trying to get the new submission's id.
    – ponies
    Jul 31 '20 at 9:01

You can grab the last submitted entry on the thank you page. So using the example, you should be able to do lastEntry.id

  • That'd do the trick, but it's a wee bit hinky. The page would always have the most recent submission's content.
    – ponies
    Jul 31 '20 at 16:28
  • Isn’t that what you wanted? Or can a user submit multiple times, and you want to show all their submissions?
    – dmatthams
    Jul 31 '20 at 18:59
  • Unless I'm misunderstanding, the thank you page would always display the latest submission's content regardless of the user viewing it.
    – ponies
    Jul 31 '20 at 19:09
  • I’m pretty sure it would be the last submission of that user (otherwise that is a huge security issue), but check with the developer to be sure.
    – dmatthams
    Jul 31 '20 at 19:37
  • 2
    I just checked the code and yes, it only gets the last entry for that session, so you’re good to go!
    – dmatthams
    Jul 31 '20 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.