Сustomized visitor experience

I am struggling to understand if WIX allows its customers to create a user input form which allows the creation of output. For example if someone types: “John” in my user input form in one of the lightboxes. Is it possible to create an output, which would say: <<Dear “John”, … >> on the next page or lightbox?

It is possible.
On the first page:

import {session} from 'wix-storage';
$w.onReady( function() {
$w("#nameInput").onChange( (event) => {
let userName = $w("#nameInput").value;
session.setItem("userName", userName);
})
})

On the second page:

import {session} from 'wix-storage';
$w.onReady( function() {
let userName = session.getItem("userName");
$w("#greetingTitle").text = `Dear ${userName} ....`
})

Thank you so much!
Is there any chance you could help me understand this a bit better? Shall I create user inputs and connect them to this code?

Yes.

  1. Create a user input saying “Fill in your name” (or whatever you want).

  2. On the properties panel set the property ID to be: nameInput

  3. Put the code in the code page section

On the second page:

  1. Create a text-box

  2. On the properties panel set the property ID to be: greetingTitle

  3. Put the above code in the page code section.

Wow! I cannot thank you enough!

You’re welcome :slight_smile: