Skip to content

ScrollToFormScript - Not working? #1486

@BatJan

Description

@BatJan

Which Umbraco Forms version are you using? (Please write the exact version, example: 13.4.0)

16.2.0

Which Umbraco version are you using? (Please write the exact version, example: 13.5.2)

16.3.4

Issue summary

So I was testing a simple form on this setup the other Day where I just had the "Thank you" text setup in the "Submit Message" workflow in the "Message on Submit" field.

When I submitted the form, which was placed a long way down the page it never scrolled back down so I could see the "Thank you" message.

But I think that is the idea with the "ScrollToFormScript.cshtml" partial called in the "Submitted.cshtml" file? As far as I can see in the "umbracoforms.js" file there is no "window.scrollTo" setup apart from in the error handling, where it appears to scroll one down to the input field that causes an error. But nothing seems to react on the #umbraco-forms-form-submitted so I think there might be an issue here? :-)

Specifics

No response

Steps to reproduce

  1. Create a simple contact form
  2. Use the default workflow where the "Thank you" message is setup out of the box
  3. Insert the form on a page a long way down
  4. Submit the form
    5: See if the page is scrolled when submit has happened and the page is reloaded

Expected result / actual result

I would expect the page to scroll down to the "Thank you" message.


This item has been added to our backlog AB#62400

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions