Get a URL parameter inside a widget

Get a URL parameter inside a widget

I've written a widget that will use a URL parameter to search for a booking, however at the moment this doesn't seem to be translating through to the widget on the form.

How can I make this work?