To visualize this, imagine links like:
<a onclick="fill_form(form.id, (user_id : bob.uid))">Bob</a>
<a onclick="fill_form(form.id, (user_id : jane.uid))">Jane</a>
<a onclick="fill_form(form.id, (user_id : moe.uid))">Moe</a>
fill_form takes a form_id and a hash of fields and values to fill.
I think this is a clean and reusable solution. Let me know what you guys think, especially if there's a better way to do this. I'll post again when I implement this to see if it's a good idea.