User interaction

I want to compare two values in a dataset, if it’s true, a successful light box will appear, If not, this will be a failure light box . So how can I do this with wix code? (this’s a contest, the students submit their homework, and receive a score after each question.)

Hi Toan,

As a first step, you have to add the two Lightboxes ( Success and Fail Boxes ) and let them be hidden on load. For comparing values, check this Wix Api to see how query works - Here
Then if the comparing is ture, open the lightBox, more information about the lightBox - Here

Hope this Helps!
Best,

Mustafa