Hide Button If No Content In Database (Repeater)

@thequeensmarketshop I’m not sure what you are really trying to do. Having looked at your code in the link above the record format that you are dealing with is shown below. The pink colored text are the property keys for each record. There is not a property key with the name “email”.

What it seems that you are trying to do is hide the image element if the title property is empty. In your screenshot above the third row (Vladimir Putin) does not have a title value. So if you want to hide the image in this case you simply do this:

$w . onReady ( function (){

$w ( "#repeater1" ). onItemReady (( $item ,  itemData ,  index ) => { 
	// get the title property 
	const  title  =  itemData [ "title" ]; 

	if ( title)  { 
		// If title exists show the image 
		$item ( " [#i](https://www.wix.com/velo/forum/search/~num~socialMedia) mage" ). show () 
	} **else** { 
		// If the title does not exist hide the image 
		$ item ( " [#i](https://www.wix.com/velo/forum/search/~num~socialMedia) mage" ). hide () 
	} 
}); 

});

  1. anrede : “Herr”

  2. ausbildung : “abgeschlossen”

  3. berufserfahrung : “1”

  4. bundesland : Array(2)

  5. 0 : “Oberösterreich”

  6. 1 : “Niederösterreich”

  7. length : 2

  8. proto : Array(0)

  9. geburtsort : “U.S.A”

  10. name : “Trump”

  11. nationalitat : “amerikanisch”

  12. pic : “wix:image://v1/b03143_4f5e6883057a4649b9b8e997208b01b5~mv2.png/AVATAR-Trump.png#originWidth=256&originHeight=256”

  13. sprache : Array(1)

  14. 0 : “Englisch”

  15. length : 1

  16. proto : Array(0)

  17. status : “Aktiv”

  18. title : “1”

  19. verfugbarkeit : “abwesend”

  20. vip : true

  21. vorname : “Donald”

  22. _createdDate : Sat Nov 28 2020 09:51:41 GMT+0000 (Greenwich Mean Time) {}

  23. _id : “069fdd20-c146-439d-8b6c-6c021e72b039”

  24. _owner : “b031430e-f59e-4ef2-aac6-787ef04e9b2c”

  25. _updatedDate : Wed Apr 14 2021 23:23:27 GMT+0100 (British Summer Time) {}