# Link URL to button on repeater with code

**URL:** <https://forum.wixstudio.com/t/link-url-to-button-on-repeater-with-code/7662>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [February 4, 2022, 5:24pm UTC](https://forum.wixstudio.com/t/link-url-to-button-on-repeater-with-code/7662 "2022-02-04T17:24:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grojasnegretti](https://avatars.discourse-cdn.com/v4/letter/g/6f9a4e/32.png) [@grojasnegretti](https://forum.wixstudio.com/u/grojasnegretti)\
**Post date:** [February 4, 2022, 5:24pm UTC](https://forum.wixstudio.com/t/link-url-to-button-on-repeater-with-code/7662/1 "2022-02-04T17:24:38Z")

</div>

Hi, Im trying to create the link on button considering the information of my collection.

The url key field was automatlically created when I create a dynamic page of the collection ( link-play-1-title ) and i cant changed for any other name

On the repeater, I’m using itemData + key field to create the connections with the elements…

evrything is working well but the link url… any ideas why?

```
    **let** query = wixData . query ( "Play" ) 
    query . contains ( "grupo" , "Novedades" ). find (). then (( results ) => { 
        **let** novedades = results . items 
        $w ( "#repeaterNov" ). data = novedades  
    }) 

    $w ( "#repeaterNov" ). onItemReady (( $item , itemData , index ) => { 

        $item ( "#textoCorto" ). text = itemData . descripcionCorta ; 
        $item ( "#portada" ). src = itemData . portada ; 
        $item ( "#button26" ). link = itemData . link - play - 1 - title ; 
        $item ( "#rating" ). numRatings = itemData . rating 
        $item ( "#rating" ). rating = itemData . numeroRatings 

    });

```
