SOLVED Pull URL Variable into Form Field

I am trying to pull a URL variable into a form field. For example:

mysite.com/cart?nodeid=d92720024d7a2295a688bc4f92fdaa814e00fb2652f6b92125642323954dc696?version=1.0

I am trying to pull everything after nodeid= into a specific form field on my form. I have tried something like this:

import wixLocation from ‘wix-location’;

$w.onReady(function () {
console.log(wixLocation.query);
$w(“#textBox1”).value = wixLocation.query[“nodeid”];
});

But with no luck. Any assistance would be great.
Thank you,
Kory

Just in case anyone needs assistance with a similar issue the code below worked:

import wixLocation from ‘wix-location’;

$w.onReady(function () {
console.log(wixLocation.query);
$w(“#textBox1”).value = wixLocation.query[“nodeid”];
});

Not sure what I was doing wrong but it is working now.