Copied to clipboard

Flag this post as spam?

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


  • René Pjengaard 118 posts 702 karma points c-trib
    Nov 05, 2015 @ 13:58
    René Pjengaard
    0

    Umbraco Form - SPA rendering

    Hi there,

    i don´t know if what i´m trying to do is doable, but here we go.

    I´m making a SPA (Single Page Application) with Angular and Umbraco. This means, that i don´t use Views but instead let Angular handle all templating. I have created a contentApi, that Angular use to get data fra Umbraco in Json-format.

    Now i wan´t to use Umbraco Forms, but i can´t get my head around rendering markup for the form in my api. If i had a view i would do:

    @Html.RenderAction("Render", "UmbracoForms", new {formId = g, mode = "form"});
    

    But how do i render the same markup from my API? Is it at all possible?

    Best regards René

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Jan 19, 2016 @ 11:57
    Alex Skrypnyk
    0

    Hi René,

    Did you solve this problem ?

    Thanks

  • René Pjengaard 118 posts 702 karma points c-trib
    Jan 19, 2016 @ 12:03
    René Pjengaard
    1

    Hi Alex,

    actual not the way i intended in the first place. We ended up rendering forms as a normal View, and created a directive for handling the form in our SPA: https://github.com/skybrud/sky-umbraco-form

    Hope this can help you.

    /René

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Jan 19, 2016 @ 14:03
    Alex Skrypnyk
    0

    Thanks, didn't know about 'sky-umbraco-form'

    /Best

  • 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