import wixLocation from ‘wix-location’;
import wixWindow from ‘wix-window’;
$w.onReady( function () {
//TODO: write your page related code here…
let query = wixLocation.query;
function popUpMessage(message) {
wixWindow.openLightBox(‘Code for ICARIS’, {‘message’:query});
}
popUpMessage(‘ICARIS’)
});
This tutorial shows an example on how to pass information to a lightbox (keep in mind that the scenario is a bit different than how you are setring up your code, bit it should still help you to understand how to build your code. Obviously do not copy it exactly since you are not using repeaters.):
Both these examples are over complicated. I do not need a dataset, just the page to pop up the message with the query part of a URL. Anyone can provide the code rather than tutorials?
JD already gave you the code. The code is in the API guide written by Wix. Then I gave you a link to an example that uses that code to help you umderstand the concept behind the code.
If you don’t understand the code provided by Wix, then you always have the option to hire someone to do it for you or walk you through it.
Now, looking at your code above … it looks to be correct …but you only shared you code for your page …you have not shared your code for your lightbox. If you don’t have code on your lightbox (like the examples in the 2 links previosuly shared) then your work is incomplete.