<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>

CC BY-SA 4.0
2020-07-31T16:28:41.153Z
That'd do the trick, but it's a wee bit hinky. The page would always have the most recent submission's content.
ponies
CC BY-SA 4.0
2020-07-31T18:59:46.603Z
Isn’t that what you wanted? Or can a user submit multiple times, and you want to show all their submissions?
dmatthams
CC BY-SA 4.0
2020-07-31T19:09:21.663Z
Unless I'm misunderstanding, the thank you page would always display the latest submission's content regardless of the user viewing it.
ponies
CC BY-SA 4.0
2020-07-31T19:37:50.880Z
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
CC BY-SA 4.0
2020-07-31T19:40:31.307Z
I just checked the code and yes, it only gets the last entry for that session, so you’re good to go!
dmatthams
CC BY-SA 4.0
2020-07-31T11:34:39.050Z
2020-07-31T11:51:16.143Z
2020-07-31T11:51:16.143Z
dmatthams
<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>

CC BY-SA 4.0
2020-07-31T07:53:46.203Z
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?
Oli
CC BY-SA 4.0
2020-07-31T09:01:19.163Z
That gets me a lot closer to a work around, but I'm trying to get the new submission's id.
ponies
<plugin-sproutforms>
How to display submission data on a thank you page with sprout forms?
# 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!  

---

