Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Button to go to a specific page

Avatar

Level 1

I have multiple buttons that, when it is clicked, will take you to a specific page of the document. Each page has a schematic that the user will click on to show what has gone wrong. The first button takes you to page 3 and then there are multiple places to click showing text as the check boxes are checked, and the form expands as needed. There are 64 places to check, so it is possible (doubtful though) that all of the boxes will be checked. Then you go back to the beginning and click on the 2nd button which takes you to page 4. The problem is that when all the boxes are checked, the text expands to Page 4 and makes page 4 turn into page 5. Is there an action or a script to make the buttons take you a specific field in the document? I know this is pretty confusing... I know the problem is that the page numbers are getting messed up in LC but I don't know how to fix it! HELPP!!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

hi,
Is this related to AEM or you looking for javascript solution?

 

you can jump to any page using anchors, you have to add id to the element where you want to jump based on click e.g. https://stackoverflow.com/questions/5007530/how-do-i-scroll-to-an-element-using-javascript



Arun Patidar

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

hi,
Is this related to AEM or you looking for javascript solution?

 

you can jump to any page using anchors, you have to add id to the element where you want to jump based on click e.g. https://stackoverflow.com/questions/5007530/how-do-i-scroll-to-an-element-using-javascript



Arun Patidar

Avatar

Community Advisor
you can jump to any page using anchors, you have to add id to the element where you want to jump based on click e.g. https://stackoverflow.com/questions/5007530/how-do-i-scroll-to-an-element-using-javascript


Arun Patidar