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 35a61b6 commit 5714355Copy full SHA for 5714355
16/umbraco-forms/developer/working-with-data.md
@@ -133,9 +133,9 @@ Here is a sample code for retrieving a record in a view.
133
Record? record;
134
string submittedEmail;
135
136
- if (TempData["UmbracoFormSubmitted"] != null)
+ if (Guid.TryParse(TempData["UmbracoFormSubmitted"]?.ToString(), out Guid formId) &&
137
+ Guid.TryParse(TempData["Forms_Current_Record_id"]?.ToString(), out Guid recordId))
138
{
- Guid.TryParse(TempData["UmbracoFormSubmitted"]?.ToString(), out formId);
139
140
form = _formService.Get(formId);
141
0 commit comments