Of course you can:
-
Query the database collection with .eq(fieldtypename, true) and get all the matched results
-
if( results.items.length > 0){$w(“button”).hide();}else{$w(“button”).show();}
See:
https://www.wix.com/velo/reference/wix-data/query
https://www.wix.com/velo/reference/$w/hiddenmixin/show
https://www.wix.com/velo/reference/$w/hiddenmixin/hide