Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Dingley 1474 posts 3431 karma points c-trib
    Sep 13, 2016 @ 12:15
    Simon Dingley
    0

    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:

    @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?

    Thanks, Simon

Please Sign in or register to post replies

Write your reply to:

Draft