Copied to clipboard

Flag this post as spam?

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


  • Sven 26 posts 128 karma points
    Jun 16, 2021 @ 09:14
    Sven
    0

    Umbraco Forms conditional logic not working

    Hello!

    We're using latest version of umbraco forms v8.7.3 with a umbraco v8.8.4.

    Our master template has a simple setup using the @Html.RenderUmbracoFormDependencies() in the <head>.

    We're rendering our form using: @Umbraco.RenderMacro("renderUmbracoForm", new { FormGuid = Model.Form, FormTheme = "custom-form", ExcludeScripts = "1" })

    Our custom form is a copy of the default theme with some extra css changes. No changes have been done on javascript or any classes needed for conditional logic.

    Important notice: we're using vue as components for some pages. It's not a vue application but vue is linked above the main tag with id="app".

    <body>
    <div id="app">
                @Html.Partial("Header", Model)
    
            <main id="main">
                    @Html.Partial("Breadcrumbs", Model)
                    @RenderBody()
            </main>
    
                @Html.Partial("Footer", Model)
        </div>
    </body>
    

    Using any script tags in the main tag results in vue warnings such as: Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.

    I'm using a simple form to test this with the following setup: enter image description here

    Results: enter image description here

    Any idea what we're doing wrong? Thanks!

  • Lili 1 post 71 karma points
    Jul 09, 2021 @ 08:17
    Lili
    0

    Hi, I'm experiencing the same issue, wondering if you had any updates on this.

  • Owain Jones 13 posts 169 karma points MVP c-trib
    Aug 06, 2021 @ 15:13
    Owain Jones
    0

    Hi Sven, did you ever get this to work?

    We're seeing the same thing on Forms v8.7.5 with Umbraco v8.15.0

  • Jamie Townsend 37 posts 197 karma points c-trib
    Aug 14, 2021 @ 18:02
    Jamie Townsend
    0

    Same here - not working

  • Sören Deger 728 posts 2837 karma points c-trib
    1 week ago
    Sören Deger
    0

    Same here - Umbraco 8.16.0 and Forms 8.7.6

Please Sign in or register to post replies

Write your reply to:

Draft