Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm using the function GetRecordsFromForm, but UmbracoPageId always returns 0.
Can't find similair cases, anyone a solution?
code snipplet
foreach (dynamic record in Library .GetRecordsFromForm("78164dcc-3aa6-4f72-8f0a-0710f6e886ff").Items.OrderByDescending(rec => rec.Created).Take(50)) { <li> <div class="reactieName"> <div>@record.Naam (gast) op @record.Created.ToString("dd MMMM yyy HH:mm")</div> <div> op pagina @record.UmbracoPageId</div> </div> <div class="reactieText"> <div class="reactieTextValue"> @record.Reactie </div> </div> </li> }`
Hi Edwin,
When I try out your code I get the id of the Umbraco page where the form has been submitted on.
<div>@record.UmbracoPageId</div>
The above code will give me the id of the page where the form was submitted. The ID could be something like e.g 1060.
Best,
/Dennis
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Contour: GetRecordsFromForm and UmbracoPageId alwasy returns 0
I'm using the function GetRecordsFromForm, but UmbracoPageId always returns 0.
Can't find similair cases, anyone a solution?
code snipplet
Hi Edwin,
When I try out your code I get the id of the Umbraco page where the form has been submitted on.
The above code will give me the id of the page where the form was submitted. The ID could be something like e.g 1060.
Best,
/Dennis
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.