# Click Button to Navigate to Dynamic Page Anchor

**URL:** <https://forum.wixstudio.com/t/click-button-to-navigate-to-dynamic-page-anchor/1754>\
**Category:** Ask the community\
**Tags:** wix-restaurants, question, code\
**Created:** [April 2, 2023, 8:16pm UTC](https://forum.wixstudio.com/t/click-button-to-navigate-to-dynamic-page-anchor/1754 "2023-04-02T20:16:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill17635](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bill17635/32/12391_2.png) [@bill17635](https://forum.wixstudio.com/u/bill17635)\
**Post date:** [April 2, 2023, 8:16pm UTC](https://forum.wixstudio.com/t/click-button-to-navigate-to-dynamic-page-anchor/1754/1 "2023-04-02T20:16:04Z")

</div>

Hi,

Can you help me solve and understand the basic code functionality to link a button to anchors or quick action bar on my site?

About:  
I created a dynamic page here at [https://www.feastbot.com/restaurants/babbabagel](https://www.feastbot.com/restaurants/babbabagel) and setup a domain babbasbagel.com that redirects to this specific dynamic page URL, but I can’t figure out how to setup a menu (desktop), to link to anchors, or quick action links (mobile), to link to specific sections of the page.

Just a simple code example would help me. I tried everything by using Velo code and all but I can’t get past it (maybe i’m lacking the basic fundamentals of how that would work). If you showed me a code example I would likely be able to tweak it.

Thanks.

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [April 2, 2023, 9:03pm UTC](https://forum.wixstudio.com/t/click-button-to-navigate-to-dynamic-page-anchor/1754/2 "2023-04-02T21:03:12Z")

</div>

Ask yourself - - \> what exactly is a - - \> DYNAMIC-PAGE ?  
You know it?

Your answer is —\> it is just a data-row inside your database?  
Yes, you are right!

So if it is just a data-row inside of your database, how does it work ?

At least you will have one pseudo-page (mask-page) which will have all needed control-elements, like buttons, texts, dropdowns, repeaters and so on.

This page is connected directly to your database, either by a → DATASET \<–, or by → CODE \<–.

If you create your dynamic page by a (dynamic-) DATASET, you will get inside of your connected DATABASE a “greyed-out” DB-Field. This data-field is a dynamic one, which should be the key to your solution.

If you do it only by code, you will have to use Wix-Data and generating some filtering-function, to get the result you are searching for (and again → out of your database) but this time directly by code.

---

<div class="post-metadata">

**Author:** ![bill17635](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bill17635/32/12391_2.png) [@bill17635](https://forum.wixstudio.com/u/bill17635)\
**Post date:** [April 3, 2023, 3:42pm UTC](https://forum.wixstudio.com/t/click-button-to-navigate-to-dynamic-page-anchor/1754/3 "2023-04-03T15:42:42Z")

</div>

Great information, thanks. I did know the basics, more specifically it seems like a menu nor quick action links - neither can be tied to a collection thru the editor. So I connected code for the menu items and it populates the staged editor menu with the right information. What I’m really stuck at now is the anchors. I need to be able to anchor with links since the code requires a property for a link and the anchors for the dynamic page do not show in the editor to manually set them. But nothing I do will link to an anchor on a dynamic page. I tried [https://www.domain.com/page#anchor](https://www.domain.com/page#anchor) and this does not work.

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [April 7, 2023, 5:03am UTC](https://forum.wixstudio.com/t/click-button-to-navigate-to-dynamic-page-anchor/1754/4 "2023-04-07T05:03:23Z")

</div>

I can’t see either your generated CODE, nor your dataset including your created database.  
You do not provide enough informations to be able to help you.
