I'm working on a race site wherein not all races have a course map, some do but others don't. I need to hide the buttons that do not have a course map URL in my database.
I'm using a repeater. I know this is possible via javascript using "if" but can't seem to get the code right.
Any guidance would be great!
Hi,
If you are using a repeater this reference will be useful
Here is a sample:
$w("#myRepeater").onItemReady( ($w, itemData, index) => { if (itemData.courseMapURL === undefined) { $w('#yourElement').hide() } });
Good luck!
Roi