Copied to clipboard

Flag this post as spam?

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


  • Damian Green 452 posts 1433 karma points
    Jun 15, 2012 @ 12:05
    Damian Green
    0

    Multiple forms and postbacks

    Hi,

    If i have say 2 MVC forms on my umbraco page and (using the demo example) one is a newsletter... when i popst back and then render the success view, i also get the PartialVIew for the other forms GET method (which is what it should do)... but what woud be the best way to go to a standalone success page?

    The issue is that you are within the template in umbraco (ive added the maco to the template rather than through the UI) so you are always going to get the 2 forms unless you go to another page.

    But whats the best way to redirect to another page and keep the macros re-usable (i.e. not hard coding the redirects etc..)

    Thanks

    Damian

  • Richard Boelen 61 posts 153 karma points
    Jun 15, 2012 @ 14:18
    Richard Boelen
    0

    Hi,

    I think it's got to be something with the formtoken stuff.

    I am still at codegarden in de hackroom. so pop by if you are there.

    I have a new version for the mvcbridge in progress and it's working rioght now on my laptop.

    You will not have to inherit from the MvcBridgeController anymore, so that should be easier.

    I'll keep you posted.

    Cheers

  • Damian Green 452 posts 1433 karma points
    Jun 15, 2012 @ 15:20
    Damian Green
    0

    Not lucky enough to be at CG12 unfortunately but will look forward to taking the new version for a spin.

    Dont think the form token would get me to what i want as detailed above (to redirect to another dedicated content page/template alias in umbraco) but will wait to see what you have come up with. :)

    Cheers

    Damian

     

  • Richard Boelen 61 posts 153 karma points
    Jun 15, 2012 @ 17:54
    Richard Boelen
    0

    I think the best way would to go to an umbraco "succes" page, you would not have your own formmodel though...

    Anyway, not sure if I go on with this as there was a package at the package competition where Shandem showed a proof of concept for actualy enabling MVC for the front-end part umbraco.

    You can find the source and package at https://bitbucket.org/Shandem/umbramvco

    Be sure to read the readme...

    Cheers.

Please Sign in or register to post replies

Write your reply to:

Draft