Prefilling a Form with query strings

I’m trying to prefill the form fields using the query strings at the end of the url

I’ve tried endpoints but that goes to the server and I can’t think of how to move it to the client in a way that would keep everything accurate

I can paste some code but since the question is on the architecture level, I don’t think the code would be relevant

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