Thanks whiskey!
I changed it slightly to add another text box hidden with the same writing in as the button doesn’t have a ‘value’ i could use.
For anyone interested here is finished code:
page 1:
import {session} from "wix-storage";
import wixLocation from 'wix-location';
export function Africa_click(event, $w) {
session.setItem('Africa', $w('#africatext').text);
wixLocation.to("/volunteer-projects");
}
page 2:
import {session} from "wix-storage";
$w.onReady(function () {
const regiondropdown = session.getItem('Africa');
$w('#regiondropdown').value = regiondropdown
})