UI > dialog widget > text field > set default value > pass context to function(){}.