Forms Unrealistic Desire

I created a survey form for customers to evaluate the meal they had consumed. Each meal directs the customer to a common survey page. Upon evaluating my data I realized I had no way to tell which meal they had sampled. I was going to add a customer input for them to identify the meal and before I did I was wondering if there was a way to track the last page they were on as this would identify the meal they were commenting on. I realize it is a long shot but is there aw way to do this?

There’re several ways to do it.
One way is to pass the meal id via the url paramters.
For example, let say they started from the page of meal number 1 .
So on the meal page:

import wixLocation from 'wix-location';
$w.onReady(() => {
$w("#dataset1").onReady(() => {
let mealId = $w("#dataset1").getCurrentItem._id;
$w("#surveyButton").onClick(event => {
wixLocation.to("/survey?mealid=" + mealId);
})
})
})

and remove the link from the button on the editor.
on the survey page:

import wixLocation from 'wix-location';
let mealId = wixLocation.query.mealid;

[fixed typo]