Hi All,
I am new to Wix Velo and I need some help on how to go to a specific part of the page in Wix. What I would like to do is when you click a hyperlink on Jotform you will be directed to a specific part of your page. To do this I need to get the URL for that specific part. But I can’t find any URL apart from my page URL. I also found out that there is currently no way to get the URL of anchors. Is there a way to do this using bookmarks?
Using anchors will get you there. If this page is only accessed via hyperlink from Jotform, it will be straightforward. You could put code like this in the onReady of the page:
$w.onReady(function () {
$w('#anchor1').scrollTo();
});
If the page can be accessed in other ways where you wouldn’t always want it to be directed to that part of the page, then you have to have some way for Velo to know the difference. When it’s all done inside of Wix, it’s quite easy to do using wix-storage API. In the calling page code, you would write to storage, and then check for that storage variable in the onReady of the destination page.