Prefilling a Form with query strings

Welcome to the forum!

Assuming that you’re going to want to prefill more than just the one form, your best bet is to use the Anvil Extras routing feature to give your forms distinct URLs. routing also would then take care of giving you access to query variables (along with managing the browser history stack, caching forms, etc).

If you want instead to roll your own solution, you’d want to look at the url hash: Anvil Docs | Navigation

2 Likes