How to prepopulate hidden fields via API