Answers.Body: <p>You can grab the <a href="https://sprout.barrelstrengthdesign.com/docs/forms/entries.html#lastentry" rel="nofollow noreferrer">last submitted entry</a> on the thank you page. So using the example, you should be able to do <code>lastEntry.id</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-31T16:28:41.153Z
Answers.Text: That'd do the trick, but it's a wee bit hinky. The page would always have the most recent submission's content.
Answers.UserDisplayName: ponies
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-31T18:59:46.603Z
Answers.Text: Isn’t that what you wanted? Or can a user submit multiple times, and you want to show all their submissions?
Answers.UserDisplayName: dmatthams
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-31T19:09:21.663Z
Answers.Text: Unless I'm misunderstanding, the thank you page would always display the latest submission's content regardless of the user viewing it.
Answers.UserDisplayName: ponies
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-31T19:37:50.880Z
Answers.Text: 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.
Answers.UserDisplayName: dmatthams
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-31T19:40:31.307Z
Answers.Text: I just checked the code and yes, it only gets the last entry for that session, so you’re good to go!
Answers.UserDisplayName: dmatthams
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-31T11:34:39.050Z
Answers.LastActivityDate: 2020-07-31T11:51:16.143Z
Answers.LastEditDate: 2020-07-31T11:51:16.143Z
Answers.UserDisplayName: dmatthams
Body: <p>How can the thank you page display submitted values? I'd like to give the users the submission id to reference.</p>
  <p>I've tried adding a hidden redirect field with a shortcode GET parameter but haven't got the syntax right.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-31T07:53:46.203Z
Comments.Text: Is `{{ craft.app.request.getParam('paramName') }}` ([docs](https://docs.craftcms.com/api/v3/craft-web-twig-variables-request.html#method-getparam)) what you're after?
Comments.UserDisplayName: Oli
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-31T09:01:19.163Z
Comments.Text: That gets me a lot closer to a work around, but I'm trying to get the new submission's id.
Comments.UserDisplayName: ponies
Tags: <plugin-sproutforms>
Title: How to display submission data on a thank you page with sprout forms?
ThreadText: # How to display submission data on a thank you page with sprout forms?
  
  (Asked by: username_0 on 2020-07-30)
  
  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.
  
  **Tags:** plugin-sproutforms
  
  > **Comments:**
  > **username_1**: Is `{{ craft.app.request.getParam('paramName') }}` ([docs](https://docs.craftcms.com/api/v3/craft-web-twig-variables-request.html#method-getparam)) what you're after?  
  > **username_0**: That gets me a lot closer to a work around, but I'm trying to get the new submission's id.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-07-31. Score: 3 | Accepted answer
  
  You can grab the [last submitted entry](https://sprout.barrelstrengthdesign.com/docs/forms/entries.html#lastentry) on the thank you page. So using the example, you should be able to do `lastEntry.id`
  
  > **Comments:**
  > **username_0**: That'd do the trick, but it's a wee bit hinky. The page would always have the most recent submission's content.  
  > **username_2**: Isn’t that what you wanted? Or can a user submit multiple times, and you want to show all their submissions?  
  > **username_0**: Unless I'm misunderstanding, the thank you page would always display the latest submission's content regardless of the user viewing it.  
  > **username_2**: 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.  
  > **username_2**: I just checked the code and yes, it only gets the last entry for that session, so you’re good to go!  
  
  ---
  
  