Copied to clipboard

Flag this post as spam?

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


  • Imran 7 posts 77 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 2683 posts 8040 karma points MVP 2x admin c-trib
    Nov 16, 2018 @ 12:03
    Chriztian Steinmeier
    0

    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 7 posts 77 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 7 posts 77 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?

Please Sign in or register to post replies

Write your reply to:

Draft