Hi guys. How to create a dynamic lightbox with contact and detail info from the database?
My site is a “room booking” kind. So when I click “book it now” a lightbox with info from the room should open.
Any idea? Thanks.
ps: my site already has databases, dynamic map and dynamic image gallery.
Thanks Roi.
But I have some difficult writing codes…I’m not a developer.
How do I set the button “book now” to open that specific lightbox?
Where do I find the name of the lightbox?
Don’t I need to write import wixWindow from ‘wix-window’; before these codes?
Hi,
Some coding skills are required in order to code in Wix Code.
You can hire an expert in Wix Arena .
Or, you can try coding!
In order to set the button you need to create onClick event and use openLightbox() method like i wrote in the example above.
This article will help to create events to elements.
Roi
Thank you Queen , So in my case i have a dynamic data set (Item) , so my code will be as below bit confused how to edit the repeater part cause the item is already ready right ? :
Dear Code Queen
I tried alot to remove the repeater but now i guess i am loosing the line that prepares the item value ( if i am understanding the code right logic) so when i placed the on click line the TargetId is not readable