Copied to clipboard

Flag this post as spam?

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


  • Mark 255 posts 612 karma points
    Feb 04, 2015 @ 13:53
    Mark
    0

    BeginUmbracoForm with anchor appended to url

    I am adding a form using the Creating an MVC form with custom html markup method.

    Unfortunately the form is at the bottom of the page, and I need it to jump down to show the form upon failure (i.e. call to CurrentUmbracoPage).

    Typically this can be achieved by adding an id to the form (e.g. id="myform") and then appending "#myform" to the form action, but this doesn't seem to be possible (at least without javascript).

    Is there some way around this? E.g, can I hard code the form action, but inject the hidden input named "ufprt" into the form so that Umbraco knows which surface controller to use?

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Feb 04, 2015 @ 14:49
  • Mark 255 posts 612 karma points
    Feb 04, 2015 @ 15:14
    Mark
    0

    Hi Alex. Unfortunately I was looking for a non javascript solution. Otherwise I may as well implement as an ajax post rather than a form submit. I was really hoping to avoid the reliance on javascript, but sounds like that won't be possible. Thanks anyway

  • 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