Hello guys, I would like to direct the user to a lightbox depending on what he puts in the text field. Here is an example.
Thanks
Hello guys, I would like to direct the user to a lightbox depending on what he puts in the text field. Here is an example.
Thanks
Hello Max,
i think that yould not be a big problem.
For this you create a own function, look …
We create a function, called NAVIGATION…
function NAVIGATION (parameter) {
}
We put in a if-query to ask whats going on, like this little example…
if (x===1) {do something}
else {do something else}
So at least we get something like this here…
function NAVIGATION (parameter) {
if (input1.value === "Oferta 01") {. . .HERE YOU WILL CALL THE LIGHTBOX1 WHICH YOU WANT . . .}
else if (input1.value === "Oferta 02") {. . .HERE YOU WILL CALL THE LIGHTBOX2 WHICH YOU WANT . . .}
else if (input1.value === "Oferta 03") {. . .HERE YOU WILL CALL THE LIGHTBOX3 WHICH YOU WANT . . .}
else {. . . WHAT SHALL HAPPEN HERE, WHEN NONE OF THE INPUT_VALUES FITS . . .}
}
Now try to complete it by your own
And do not forget to use —> $w()
Here an example for you…
https://russian-dima.wixsite.com/meinewebsite/blank-20
P.S.: Wouldn’t it be better to use a drop-down in your case, instead of typing in value into a inputfield?
Hey russian.dima, first thanks.
I think I did wrong, i understand the logical but I still have a lot of difficult. Sorry for this.
So, I drop-down is good but not for the case. To you understand, it will to a to a temporally offer. In a LIVE trasmition i will say a “cupom offer” and the user will type and will redirectly to the page, this page is a lightbox payment.
Thanks again
Oh, sorry forgot to activate the code-box in my example.
Now you can see the code belonging to the example.
Look behind the scenes.
UPDATED:
https://russian-dima.wixsite.com/meinewebsite/blank-20
And, next time please do not show code in an image.
You have here the option in this forum to show your CODE in “CODE-TAGS”.
Everyone who wants to copy code to modify it quickly, can do it then.
If you show me a pic of your code, i have first to type all the code, this cost me a lot of time.
Hey russian.dima It worked perfectly. Thanks a Lot!!!
No problem, you are always welcome!
I am so happy for the help. Really helped me. And thanks for your codes in your site, is helping me a lot. 1000000