I simply want to take the email address that a user inputs into a text field on the main home page, then use that value to become a placeholder in a new text field in a subsequent LightBox Form.
This should all happen with one click of the button: button6
But the value in the LightBoxForm always returns empty or with the phrase [Object object] as an error. It never shows the actual email address. What could be the problem here?
Any help is greatly appreciated!
HOME PAGE CODE
import {session} from ‘wix-storage’ ;
LIGHT BOX CODE
import {session} from ‘wix-storage’ ;
$w.onReady( function () {
fillEmail();
});
function fillEmail (){ let subE = session.getItem( ‘Email’ ); //Edit: getCurrentItem() is now getItem(). Code still doesn’t work
$w( “#inputLightBox” ).placeholder = subE;
}