Community

prepopulate username and database query data to webform fields

I need to prepopulate my webform fields with username and some other data that are queried from an external database. I tried using %username in the default values, but it does not work. Could anyone help me with this? Thanks!