Is there any way to prepopulate hidden input fields programmatically?