Hi everyone,
I would like to send people from dynamic pages to a contact form, and have an object in my form prefill with the page the user was.
I saw many topics talking about URL parameters, but I can’t find nothing with dynamic pages infos…
What I have now on my Dynamic Page :
$w("#ContactButton").link = "/contact/?rest={Title}";
Sadly, {Title} isn’t working in this way… so how can I add the Title of the dynamic page in the URL parameter ?
On my contact page, I have the following code :
import wixLocation from 'wix-location';
$w.onReady(function () {
console.log(wixLocation.query);
$w("#input1").value = wixLocation.query["rest"];
});
Everything work fine, except that in my input1, the word “{Title}” is prefill… not the actual title of the previous page…
Any help on this would be much appreciated
Thank you all