I have created a database with multiple images (see screenshot 2). I have also created the dynamic item page with a media gallery on it. When I click the database icon to select "Images (Media Gallery)" its grayed out and I cannot connect (screenshot 1). Any ideas?
![](https://static.wixstatic.com/media/a27d24_de4c671e5f3b4271aa7ba452e30c23fd~mv2.jpg/v1/fill/w_980,h_554,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_de4c671e5f3b4271aa7ba452e30c23fd~mv2.jpg)
![](https://static.wixstatic.com/media/a27d24_cea443f18ff6472a803cf23bdf1de46b~mv2.jpg/v1/fill/w_980,h_555,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_cea443f18ff6472a803cf23bdf1de46b~mv2.jpg)
Did it workout with the code?
I beleive you would have to connect it using the code here: https://www.wix.com/code/reference/$w.Gallery.html#items
eg retrieve the field using wixdata then set the gallery items property to the returned field:
let Gitems = result.items[0].imagesField; $w("#myGallery").items = Gitems;