I have a custom grid editor which allows editors to add jobs to a page. Each job will have a link to show an application form in the page which is an Umbraco Forms form. The GridEditor view renders the macro as follows for each position:
@Umbraco.RenderMacro("FormsRenderForm", new { FormGuid = "8184ae77-020d-41ba-9deb-d3d078b71bc7", PageName = position.Title })
I need to somehow get the PageName macro parameter pulled into the form instance which has a hidden field for storing the position name. How can this be achieved?
Pass Macro Parameter through to Form
I have a custom grid editor which allows editors to add jobs to a page. Each job will have a link to show an application form in the page which is an Umbraco Forms form. The GridEditor view renders the macro as follows for each position:
I need to somehow get the PageName macro parameter pulled into the form instance which has a hidden field for storing the position name. How can this be achieved?
Thanks, Simon
is working on a reply...