repeater with text box with link

I have a repeater connected up to a data collection. Within that repeater I have a text box. I would like to be able to click on it and cause a tab to open with some url based on some field in the data collection.

I have tired :

  1. to use a button - works fine but limits the text to 1 line.
  2. to add the following code :

  • ignore the populate drop down.
    This opens the url in the same window. Unfortunatly I could not work with the standard js

Thanks in advance :slight_smile:

Check spelling first

Also, have a read of the repeater reference too as it will give you code samples there for it.
Repeater - Velo API Reference -

Also about the link too,$w.LinkableMixin.html

Or you can do it with a button as Yisrael shows in this old forum post.

idon’t know if i were on the good page, but i have a pequivalent problem, cause I can’t create a dynamic hypertext link from wix database with a repeater
It is possible ?

I have in my wix database a list of cities who is connected to dynamique page.
I created a repeater on my homepage with the list of cities from my database and I want when I click on “the text of one of cities” it brings me to a good dynamic page.

How i do that ? i read the link but i dont understand how to… :frowning:
Thank you

Please post your issue as a new post rather than bumping up an old thread from last year.

Also, add any code in a code block that you have used along with any screenshots etc that can help.

Use the search function too to look for previous posts that can be helpful from which the original forum poster got their used code from, along with keeping the same mistakes in the code! :wink::face_with_hand_over_mouth:

Just remember to change these lines here.

import winLocation from 'wix-location';; 

So that it does not say ‘win’ and it says ‘wix’ instead, as in the Wix Location API,

import wixLocation from 'wix-location';;