Jump Back Functionality for Button Link

Wanting a way to have our CTA button jump back to a form at the top of the page. Is there a way to do this? & if not, could it be added to the “link to” section?

Hi @MSmith28

Thank you for reaching out!

I believe you could do that with an anchor link.

I want to tag some of our experts here - @Teun @LMeert @Gonzalo do you have any advice to share with @MSmith28 on this?

Thank you!

Best

Tiphaine

Hi @MSmith28 ,

The anchor link is the right approach. Set the ‘external link’ to #top and add a text block module to the top of the page with the following code:

<div id="top"></div>

Hi @MSmith28,
@TitiCuisset is right, that is how you will manage a jump back button.
Simply follow the steps of the post she linked above :

- Add an anchor to wherever you want your button to jump back to
- Select “external” as your button link option

- In the url field, enter #youranchorname

A click on the button will jump back to where the anchor is located.
However it will be a “brutal” jump, if you want smooth scrolling, you could add a css file to your template with the following rule :

html {
 scroll-behavior : smooth;
}

Ludwig