I’m new to velo and hope someone will be able to help me figure out how to get to the solution I’m looking for.
My page has a repeater connected to a collection; items in the repeater are connected to data. Each instance in the repeater contains the name of a business from the dataset. If the business is a member of the association I want a button under their name that links to their website. If the business is not a member, I want to hide the button.
I used this code to make the buttons go away (yay!) but don’t have a clue what to do next.
let repeaterData = $w(“#myRepeater”).data;
$w(“#button43).hide();
The database has a field with the values “yes” for members and “no” for non-members. How can I query the database to see if the value is yes or no, and then hide the button if it is no?