Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

webapp input moving page to anchor link on new page

Avatar

Avatar
Validate 1
Level 1
bryceh57660644
Level 1

Like

1 like

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
bryceh57660644
Level 1

Like

1 like

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
bryceh57660644
Level 1

16-10-2020

Hey,

 

I have a page where the form is at the bottom and when they submit, that form section is replaced by a thank you confirmation and a couple articles. The problem I am having is that when they click submit, they are taken to the top of the thank you page which has the same content as the form (some information stuff about our products). 

 

Is there a way for me to add a # anchor link to the form upon clicking submit?

 

I tried doing:

<input onclick="#ThankYou;next();">

<input onclick="next();"> <a href="#thankyou">Submit</a></input>

 

Any other suggestions?

Thanks,

Bryce

 

 

webapp

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
wodnicki
MVP

Likes

941 likes

Total Posts

1,061 posts

Correct Reply

499 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile

Avatar
Contributor
MVP
wodnicki
MVP

Likes

941 likes

Total Posts

1,061 posts

Correct Reply

499 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile
wodnicki
MVP

16-10-2020

Hi,

 

Can just use jquery and skip the anchor. For <a id="thankyou"/>:

window.scrollTo(0, $('#thankyou').offset().top);

 

Thanks,

-Jon 

Answers (1)

Answers (1)

Avatar

Avatar
Validate 500
Employee
Sukrity_Wadhwa
Employee

Likes

134 likes

Total Posts

821 posts

Correct Reply

35 solutions
Top badges earned
Validate 500
Validate 250
Validate 100
Validate 25
Validate 50
View profile

Avatar
Validate 500
Employee
Sukrity_Wadhwa
Employee

Likes

134 likes

Total Posts

821 posts

Correct Reply

35 solutions
Top badges earned
Validate 500
Validate 250
Validate 100
Validate 25
Validate 50
View profile
Sukrity_Wadhwa
Employee

25-10-2020

Hi @bryceh57660644,

Were you able to resolve this query with the given solution or do you need more help with it? Do let us know.

Thanks!