# how to make a repeater image open an URL link from a dataset?

**URL:** <https://forum.wixstudio.com/t/how-to-make-a-repeater-image-open-an-url-link-from-a-dataset/27173>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [April 14, 2020, 6:30pm UTC](https://forum.wixstudio.com/t/how-to-make-a-repeater-image-open-an-url-link-from-a-dataset/27173 "2020-04-14T18:30:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gil3drp](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/gil3drp/32/18252_2.png) [@gil3drp](https://forum.wixstudio.com/u/gil3drp)\
**Post date:** [April 14, 2020, 6:30pm UTC](https://forum.wixstudio.com/t/how-to-make-a-repeater-image-open-an-url-link-from-a-dataset/27173/1 "2020-04-14T18:30:04Z")

</div>

I have a repeater that gets info from #Dataset1 and in the dataset i have the fields “titles” “image” and “URL”.

The image in my repeater is alread connected to the image field in my Dataset1. Now what i want to do is when on click the image a link opens from the relative URL in the Dataset1 to the image loaded

What I was tying to do:

```javascript
export function image20_click(event) {
    $w.item("#Dataset1").link = itemData["link"];
}

```

What am I doing wrong? Could someone share a light?

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [April 15, 2020, 3:04am UTC](https://forum.wixstudio.com/t/how-to-make-a-repeater-image-open-an-url-link-from-a-dataset/27173/2 "2020-04-15T03:04:17Z")

</div>

The forum search is a wonderful tool 😉  
[https://www.wix.com/corvid/forum/community-discussion/problems-linking-repeater-background-to-urls](https://www.wix.com/corvid/forum/community-discussion/problems-linking-repeater-background-to-urls)  
[https://www.wix.com/corvid/forum/community-discussion/how-can-i-add-a-dynamic-link-to-the-container-of-a-repeater](https://www.wix.com/corvid/forum/community-discussion/how-can-i-add-a-dynamic-link-to-the-container-of-a-repeater)

---

<div class="post-metadata">

**Author:** ![gil3drp](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/gil3drp/32/18252_2.png) [@gil3drp](https://forum.wixstudio.com/u/gil3drp)\
**Post date:** [April 15, 2020, 10:40am UTC](https://forum.wixstudio.com/t/how-to-make-a-repeater-image-open-an-url-link-from-a-dataset/27173/3 "2020-04-15T10:40:23Z")

</div>

Thank you GOS for your kind answer.
