Copied to clipboard

Flag this post as spam?

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


  • Imran 11 posts 81 karma points c-trib
    Nov 16, 2018 @ 11:13
    Imran
    0

    Override "InsertUmbracoFormWithTheme.cshtml"

    I want to know the best way of overriding the "InsertUmbracoFormWithTheme.cshtml" file.

    I have an Umbraco Form which needs extra macro properties on them when picking the form.

    So I need to add logic to handle those properties, but I don't want to do all this straight in the "InsertUmbracoFormWithTheme.cshtml" file.

    Any ideas?

  • Chriztian Steinmeier 2726 posts 8320 karma points MVP 4x admin c-trib
    Nov 16, 2018 @ 12:03
    Chriztian Steinmeier
    1

    Hi Imran,

    You need to create your own version of it — otherwise, you'll lose the contents when UmbracoForms gets upgraded.

    When you've created your own copy you can set allow that for use in the RichText editors, and switch the built-in one off.

    Hope that helps,

    /Chriztian

  • Imran 11 posts 81 karma points c-trib
    Nov 16, 2018 @ 14:24
    Imran
    0

    Thanks Chriztian, do you know what changes I would have to make to get this working in the grid instead of the RTE?

  • Imran 11 posts 81 karma points c-trib
    Nov 16, 2018 @ 15:26
    Imran
    0

    It looks like the "InsertUmbracoFormWithTheme.cshtml" alias is "renderUmbracoForm" and it is specifically set for Umbraco Forms in the "App_Plugins\UmbracoForms\js\umbraco.forms.js".

    I think this is where it is being set for the grid.

    Does anyone know if there's a way to override this?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies