Fill in selected field correctly when user clicks on text input box.