I have a Repeater element on my page. It is not connected to any dataset. It is a static repeater with different pieces of information. A click on each item should take it to a different URL. I am unable to achieve this with code. Below is what I could achieve and it does not work.
$w.onReady(function () {
$w("#repeater1").onItemReady( ($w, itemData, index) => {
if ($w("#text17").text === "Visa & Residency"){
$w("#text17").onClick( (event, $w) => {
wixLocation.to('/amer-typing-services')
} );
}
} );
} );
Need more information to determine what's wrong...
Why are you checking if #text17 is equal to "Visa & Residency"? Is it possible that it's set to another value? And if so, what happens then?
Do you have an onItemReady() function? If the repeater is not connected to a dataset, then you will need an onItemReady() function to configure the repeater items.
Yisrael