[Solved] Adding a value to a hidden Umbraco Form f...
# help-with-umbraco
c
V13.2.2, UF V13.1.1 I have a page which receives the following form post:-
string? location = HttpContextAccessor.HttpContext?.Request.Form["location"].ToString();
The same page invokes a form like so:- ``` @if (categoryPage.FormPicker.HasValue) { @await Component.InvokeAsync("RenderForm", new { formId = @categoryPage.FormPicker.Value, theme = "MyTheme", includeScripts = false }) } ''' Is there any way I can get the "location" value into a hidden field in the form? The docs & googling aren't telling me but I don't think it's an unreasonable thing to want to do. Thanks.
c
I thought a magic string only took data from the published page or the form itself, but it'll take a value from the HttpRequest, so that sorted it. Thanks 🙂
2 Views