Copied to clipboard

Flag this post as spam?

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


  • Dan McManus 4 posts 84 karma points
    Mar 03, 2017 @ 16:24
    Dan McManus
    0

    Form Picker

    Hi there,

    I'm having a bit of trouble rendering forms on my page with the form picker.

    So I'm using "Form Picker" on my document type. enter image description here

    I then select the form when creating a content page.

    enter image description here

    This is where I'm getting stuck, I've tried using a macro to render "consultantForm" but no luck. Currently I've used Umbraco.Field as it actually shows something.

    enter image description here

    However it only displays the form ID.

    enter image description here

    Any assistance would be greatly appreciated, thanks

  • Shola 63 posts 270 karma points
    Mar 03, 2017 @ 17:34
    Shola
    0

    I believe you need to render the forms macro, passing in that GUID:

        @Umbraco.RenderMacro("umbracoformsRenderForm", new {FormGuid=Umbraco.Field("consultantForm")})
    

    What does that give you?

  • Dan McManus 4 posts 84 karma points
    Mar 06, 2017 @ 09:18
    Dan McManus
    0

    enter image description here

  • Dan McManus 4 posts 84 karma points
    Mar 06, 2017 @ 23:13
    Dan McManus
    0

    Does anyone know how to fix it? Much appreciated

  • Shola 63 posts 270 karma points
    Mar 07, 2017 @ 00:49
    Shola
    1

    Apologies, this is the correct macro name:

    @Umbraco.RenderMacro("FormsRenderForm", new { FormGuid = Umbraco.Field("consultantForm") })
    

    I think my first attempt was from an older version of Forms.

    Note: since you're doing this manually, be sure to add the necessary javascript that the form needs: https://our.umbraco.org/documentation/products/umbracoforms/developer/Prepping-Frontend/

  • Proxicode 115 posts 289 karma points
    Dec 21, 2017 @ 19:34
    Proxicode
    1

    And as of Dec 2017 I'm using...

    @Umbraco.RenderMacro("renderUmbracoForm", new { FormGuid = Umbraco.Field("formName") })
    

    -Roger

  • Dan McManus 4 posts 84 karma points
    Mar 07, 2017 @ 09:46
    Dan McManus
    0

    It works! Thank you very much

  • Shola 63 posts 270 karma points
    Mar 07, 2017 @ 15:41
    Shola
    101

    Great! If you could, please mark the answer as resolved.

    Cheers

Please Sign in or register to post replies

Write your reply to:

Draft