Help with using getCurrentItem to pull the value for my URL tag.

Hello, I’m trying to write some code to redirect users that click on an item in a repeater that’s tied to a database to a dynamic page. I’m trying to use getCurrentItem to pull the value for my URL field, but whenever I use the the URL field key I receive an error in my code.


However I can set other tags like _id or title and it returns the value just fine. How can I format this to get it to return the URL?

For reference, if I leave it blank it returns all of the possible values, which can be seen here:


As you can see in this snip, link-Collections-title is the proper tag and it returns the value that I want.

Any help regarding this would be super appreciated!

try:

$w("#dataset1").getCurrentItem()["link-Collections-title"];

that worked, thanks for the help!