I have a contact form and I want to store the user’s email address in session storage so it can be retreived from the thank you page.
https://yelluk.wixsite.com/my-site-29432/
This is the code I am using:
import {session} from 'wix-storage';
export function wixForms1_wixFormSubmitted() {
session.setItem('yourEmailVariable', $w("#input1").value);
}
It works in that it stores a value, however the key name is incorrect (appears to be generated) and it is storing the key name and value together as an array in the value field:
I expected it to output the following results:
Key: yourEmailVariable
Value: test@test.com
Any help would be appreciated!