I’m guessing you’re getting the ID from the URL and store it in a variable with Javascript?
Then you can save it in the browser’s local storage like:
localStorage.setItem('ID', yourIDVariable);
This will store the ID locally in the browser, which you can retrieve in a variable on the next page like:
let user_ID = localStorage.getItem('ID')
Alternatively you could append the ID to the link of the button that sends the user to the next page, but I’m a bit too tired to write out that alternative right now.
In order to send the ID through with the form you would probably need to use a hidden field (which Webflow hasn’t added natively yet for some reason) which you then can pass the data from your variable to like:
-
Give the hidden field an id
-
Set the hidden field’s value to the user_ID variable
document.getElementById('yourFieldID').value = user_ID;