Copied to clipboard

Flag this post as spam?

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


  • Fahad Ayub 71 posts 238 karma points
    Aug 10, 2017 @ 09:20
    Fahad Ayub
    0

    Umbraco form Ajax

    Hi, I have created contact form and rendred form in my View using:

    Umbraco.RenderMacro("FormsRenderForm", new { FormGuid = "c333da43-d746-4fd8-a6b6-7deda6f02ee2" })
    

    My work flow is : On Submit -> Display message : "Thank you..." -> Send an email.

    Everything works fine the only problem I am facing is after submit it loads the whole page. As I have this contact form rendered in my footer after submit the whole page loaded and user have to scroll all the way footer of the page to see the "Thank you.." message. My question is how to make the form submit action as ajax so the whole page not get loaded.

    Please help.

    Thanks

  • Fahad Ayub 71 posts 238 karma points
    Aug 11, 2017 @ 07:52
    Fahad Ayub
    0

    Any help on this please.

    Thanks

  • Fahad Ayub 71 posts 238 karma points
    Aug 14, 2017 @ 11:57
    Fahad Ayub
    0

    seems like no body got answer to this? :(

  • Amir Khan 1284 posts 2741 karma points
    Aug 14, 2017 @ 19:44
    Amir Khan
    100

    HI Fahad,

    This thread should help: https://our.umbraco.org/forum/umbraco-forms/80174-ajax-umbraco-forms

    You'll need to make a tweak to the partial that renders that specific form in Views/Partials/Forms/[create a folder with the form's GUID]/Form.cshtml

    -Amir

Please Sign in or register to post replies

Write your reply to:

Draft