We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d997248 commit 7156a66Copy full SHA for 7156a66
13/umbraco-forms/developer/working-with-data.md
@@ -134,9 +134,9 @@ Here is sample code for how to get the record in a view.
134
Record? record;
135
string submittedEmail;
136
137
- if (TempData["UmbracoFormSubmitted"] != null)
+ if (Guid.TryParse(TempData["UmbracoFormSubmitted"]?.ToString(), out Guid formId) &&
138
+ Guid.TryParse(TempData["Forms_Current_Record_id"]?.ToString(), out Guid recordId))
139
{
- Guid.TryParse(TempData["UmbracoFormSubmitted"]?.ToString(), out formId);
140
141
form = _formService.Get(formId);
142
0 commit comments