On static pages in Wix Editor, a button can easily link to a section on the same page. However, on Dynamic Pages, there doesn’t seem to be an option to link to a section within the current page. Instead, it forces you to choose a item (see images below), it is not possible to select dynamically current page. Is there a way to link a button to a section (anchor) on the same Dynamic Page? Is this bug, feature, just lazy dev or im just too stupid ?
I believe this is expected behaviour - but I can see why this might be needed.
That said, it’s possible to fix with a short bit of code:
$w.onReady(function () {
$w("#button").onClick(() => {
$w("#section").scrollTo()
})
});
Where the button and section ids are updated to what is relevant for your setup
