Streaming live at 10am (PST)

Is it possible to create a link that populates my form's subject field?


#1

My client is asking if someone clicks on a contact us button in a particular section - for the subject of the form to change to represent that…
Is this possible? I don’t really know much javascript - is this a javascript thing?

A thought was perhaps I make a field for each section, have them all hidden - then interaction to reveal the correct one?.. is that a bodge?


#2

You can use a link with mailto

mailto:yourname@yourdomain.com&subject=My%20Subject

This will open the user’s mail client with the subject “My Subject”

Learn more:


#3

Auto-fill form values based on URL querystring


#4

@samliew thanks! I will try that today - really appreciate it :smile:


#5

It works!! Thanks @samliew!
One other thing, I now have it so that buttons within different sections of the page will populate that field with bespoke text appropriate to each section the button was in - all good.
The contact form is at the bottom, if you just link to that anchor, the screen animates nicely.
If you put the full url with the #anchor within the link, it does the job but you lose the nice scroll animation - here is my question:
Is there a way to do this and keep the nice scroll animation? I just know that will be my client’s next question…

thanks in advance!


#6

Yes possible to override the default scroll to section functionality. I provide consultation if you fill in the form here http://webflowexpert.com