Help! vector image displayed based on dataset value

I am trying to build profile pages for my website. I have set up the databases/datasets and can get the text fields working in a repeater with links to their full profile. One of the dataset fields is a boolean called ‘severeAllergy’. I have a vector image to indicate an alert that I’d like to link to the condition of the ‘severeAllergy’ field. (ie. true = show image, false/null = hide image.)

dataset is called #dataset1
image is called #alerticon
boolean field called ‘severeAllergy’
repeater is called #miniprofile

I had this working outside of the repeater but when I tried to set it up in the repeater it all went sideways.

Thank you!

Hay kaleena,

Can you share a bit more how it worked without a repeater? What is the code involved?

For the repeater case, did you use the repeater onItemReady API and the $w.at API?

I used the onItemReady API but not the $w.at API… maybe that’s my issue??

I’m very “green” at this coding stuff so it takes me like a million tries to get stuff to work…lol. I don’t recall what I had used for coding outside of the repeater but I’ll see if I can remember/figure it out again and post what I had used.