Hi
I need help here please. Basically I want to transfer one data input to another page. As for an example, let's say this particular user is inputting an amount on Page A, I want to display the same amount in Page B.
To be more precise let's say this person enters $600 in page A and then I want this $600 to be brought forward to another page. I don't this user to enter the same data twice in Page A and B. It will be easier for them if the amount is displayed in Page B.
Please help me through this. Thank you.
@Mim Corp
PAGE 1:
import {session} from 'wix-storage'; $w.onReady(() => { $w('#input4').onChange(event => { session.setItem('value', $w('#input4').value); }) })
PAGE 2:
import {session} from 'wix-storage'; $w.onReady(() => { let value = session.getItem('value'); if (typeof value === 'string'){ $w('#input1').value = value; } })
I trieid doing this for date transfer but it wouldn't work.
e.g. The user chooses the date from a date box and when transfered to another page he should see the date he chose before.
Any help? :P
You can use wixStorage to keep the data in the browser cache/memory and use it in the other page:
https://www.wix.com/corvid/reference/wix-storage.html