Sending values between datasets within a slide show

I have been trying for ages to send information between datasets within a slideshow.

I have a slideshow which acts as a multi page form to capture customer details, in addition to presenting dynamic information of the product purchase.

However I am trying to record within the #Customerdataset the product which has been purchased from the product dataset, when the submit button is clicked (or even before).

I have tried a number of approaches however nothing is working, but not sure if this is due to being within a slideshow.

Does anyone have any example code which could work in this case?

Hey Benjamin,

Have you tried using the storage session API? This would allow you to pass data between your pages.

I was able to locate a similar post that may help you out.
https://www.wix.com/corvid/forum/community-discussion/solved-wix-storage-transferring-data-between-pages

In case you haven’t seen it, check out one of our examples here on how to create a multistage form with a slideshow.
https://www.wix.com/corvid/example/multistage-form

If you’re still unable to get it working, feel free to post your code and a link to your site here.

Best regards,
Miguel

Thanks, Still unable to get this working. Below is the code and URL of the first page:

Page1: https://www.novadrive.com.au/your-car/62342

Page 1 Code:

import {session} from ‘wix-storage’ ;
session.setItem( ‘dealerurl’ , $w( “#text266” ).text);

Page 2: https://www.novadrive.com.au/purchase/62342

Page 2 Code:

import {session} from ‘wix-storage’ ;
{
let title = session.getItem( ‘dealerurl’ );
$w( ‘#input28’ ).value = title;
}