Hi all, my name is Matt,
I am trying to build a restaurant review site. I have a dynamic page (and dataset) that displays each restaurant, a ratings display element for average rating, and a repeater that shows each individual review pertaining to that restaurant. There is also a button so people can “add a review” which opens a light box for them to submit their review. I tried following the steps in this article: https://support.wix.com/en/article/corvid-tutorial-adding-ratings-and-reviews-to-a-wix-stores-site
Because I’m not using the wix store I don’t know what to substitute in the code.
I’m currently having two issues right now:
- I can’t get the lightbox to open with the code when I click the “Submit a Review” button
- I don’t know how to pass the data from the current restaurant page to the light box so that the correct reference field in the review dataset will select the current restaurant automatically.
I’m attaching 4 pictures:
- the coding for the dynamic page with the things I’ve changed from the article highlighted
- my restaurant dynamic page with element ID’s
- the lightbox with element ID’s
- the code for the lightbox with the areas I changed highlighted.
Thank you in advanced, I really appreciate any help you can offer.