Prefill Netlify form from URL string?

Hey there,

I have a contact form that I rely on for taking in all of my customers. A basic form with name, email, subject (list) and a message.

On my services page, I have call to action buttons that link to my form.

I’d like to be able to pass a string in the URL by appending #[id-name]=[value] to prefill a form element.

Is this currently possible? If not, I feel it could be a great feature for Netlify-Forms. My apologies if this has been brought up before, I searched but couldn’t find any similar threads.

Thank you so much!

Hey @RT_Hinkel

If you want to pre-fill and form based on query parameters in the URL, this is something you will need to handle with client-side JavaScript.

1 Like