I got this working by adding the following script to the page. It only handles a single field, but it works as I would expect. Continue reading...