Have you tried something like this using the following syntax, that worked for Contour. Perhaps it´s worth to try this, and see if this syntax also works for Umbraco Forms.
Id {member.id} Login name {member.loginname} Email {member.email} Custom property {member.propertyalias}
Hope this can help. Don't know if it's actually will work.
Does this give any hints? What exactly did you write in the field?
at ASP._Page_Views_MacroPartials_RenderUmbracoFormScripts_cshtml.Execute() in c:\xxxxxxxxxx\Views\MacroPartials\RenderUmbracoFormScripts.cshtml:line 8 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) at Umbraco.Web.Mvc.ControllerExtensions.RenderViewResultAsString(ControllerBase controller, ViewResultBase viewResult) at Umbraco.Web.Macros.PartialViewMacroEngine.Execute(MacroModel macro, IPublishedContent content) at umbraco.macro.LoadPartialViewMacro(MacroModel macro) at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
Default value from members in Umbraco Forms V4.1
I'm building an intranet for a client. I would love to add a value from the logged in member to the DefaultValue of a hidden field. Is that possible?
Hi Henning,
Have you tried something like this using the following syntax, that worked for Contour. Perhaps it´s worth to try this, and see if this syntax also works for Umbraco Forms.
Hope this can help. Don't know if it's actually will work.
/Dennis
When I add {member.loginname} to DefaultValue and try to load the page with the form:
Error loading Partial View script (file: ~/Views/MacroPartials/InsertUmbracoForm.cshtml)
Comment author was deleted
Should be supported but you might have run into a bug, will test the same setup and let you know
Comment author was deleted
Just tested and it worked in my setup, do you have any entries in the log from that error that might give us some more information?
Does this give any hints? What exactly did you write in the field?
i am having same issue. Has anyone solved this?
I'm running into a NullReferenceException when using defaultvalues for a logged in member. See https://our.umbraco.org/forum/umbraco-pro/contour/70575-nullreferenceexception-on-umbraco-forms-with-defaultvalue-for-logged-in-member
Still not fixed.
Has anyone solved this yet? Running into the same issue with the Partial view error.
Bump
is working on a reply...