How to create a dynamic link on a button

I have a dataset on my page the gets the latest item in a collection and displays some information. Now I want to have a button that links to an external website’s page. I’ve seen mentions in some forum posts that you can make a button use a link field from a collection (and I have a link in mine), but I don’t see anything explain how to set the link of the button to the field so that it is dynamic. Do I need to do this in code since it is not a page in my site?

Hello, Ben.

Please take a look at the related forum posts that might help you:

https://www.wix.com/corvid/forum/community-discussion/how-to-link-a-button-using-code
https://www.wix.com/corvid/forum/community-discussion/trying-to-link-a-button-within-the-data-base

Good luck!