Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
When you submit a form and displays a message the page jumps to the top.
Is it in any way possible to set the return URL to the following
/#contour_form_@{@Model.FormName.Replace(" ", "")}
This will make the browser jump to the DIV surrounding the form.
I've been looking in the Form.cshtml, but the markup for the
I had the same requirement and fixed it using jQuery (using Umbraco Forms 6):
$('.umbraco-forms-form[id]:has(form)').each(function () { var umbForm = $(this), form = umbForm.find('form'); form.attr('action', form.attr('action') + '#' + umbForm.attr('id')); });
Make sure the id is set on both the form and submit message (<div id="umbraco_form_@Model.FormClientId" class="...">).
id
<div id="umbraco_form_@Model.FormClientId" class="...">
is working on a reply...
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.
Continue discussion
Go to form location on submit
When you submit a form and displays a message the page jumps to the top.
Is it in any way possible to set the return URL to the following
This will make the browser jump to the DIV surrounding the form.
I've been looking in the Form.cshtml, but the markup for the
I had the same requirement and fixed it using jQuery (using Umbraco Forms 6):
Make sure the
id
is set on both the form and submit message (<div id="umbraco_form_@Model.FormClientId" class="...">
).is working on a reply...
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.