Auto Filled Forms from Links

Good day Forum.

Is it possible to create a, for example, ‘Sign Up Here’ link on a page which takes the user to a form where it has, for example, Sign Me Up auto selected on the form where they would then input their details?

1 Like

Hi,

If you want to fetch values from a URL to pre-fill an input field then you can do something like this under your page’s or dataset’s onReady function:

import wixLocation from 'wix-location';

$w.onReady( function () {
    $w("#email").value = await wixLocation.query["email"];
 });