URL Querystring Data Source
Pass querystring params through to forms and text elements, automatically
Last updated
Pass querystring params through to forms and text elements, automatically
Last updated
Extract querystring parameters from the current URL, and apply the contents to tagged elements on your page.
Use querystring data in your FORM data, to collect it for submissions ( e.g. utm_
params )
Pass querystring data through to other links on the page, so it will get carried through
Use querystring data in visible fields, e.g. to personalize a page from an Email newsletter link click ( βHey Mary!β )
Examples
$query
Shortcut. ?
can be used as a shortcut in place of $query.
, for example ?name
is equivalent to $query.name
Configure everything using simple custom attributes.
This tool will carry any URL querystring params into your webpage, and apply them as follows;
On any INPUT elements with a custom attribute of wfu-bind=X
, WFU will replace the value
attribute with the value of the querystring param X
.
This works with type=hidden
INPUT elements as well, so the data can be passed through invisibly.
The querystring param you use in wfu-bind
is case-sensitive. ?name
and ?Name
are different.
Checkbox elements will be set to the boolean truthy value.
Select elements will be set to the matching select value.
On any other elements with a custom attribute of wfu-bind=X
, WFU will replace the inner text of the element with the value of the querystring param X
.
First, add the library as detailed in Quick Start.
wfu-bind
to Desired ElementsFor example, use wfu-bind=?name
if you want to apply the value of querystring param name
to that element.
See above for details.