There is no built-in feature at Netlify to affect the subject, beyond the static string that you found. So indeed your supposition that you’d need to do some “magic” client-side to transform that string before submitting is true! I don’t have any handy code to show this so maybe if you come up with some, you could share it here for future folks on the same adventure?
+1 vote for a feature that server-side will sub a string variable with an input value, so that something like below, would yield a subject line with the submitter’s email address (or any other input value on the form).
<form ....
..../form>
Email clients like gmail, show messages with the same subject as part of an ongoing conversation, grouping them together. A very easy way to lose inbound leads in inbox clutter. Learned this the hard way with some clients :-). Here’s two test messages, showed as one line in gmail. Easy to miss:
I will come back and share any client-side JS I come up with that solves the issue, however. My first thought is that it might be tricky when a user is doing multiple edits and validation cycles prior to submit…
Oops, I can see my code example wasn’t escaped properly… this was it:
<form...
<input type="email" name="email>
<input type="text" name="subject" value="{{email}} has sent a message from yourwebsite.com" class="hidden">
.../form>
netlify forms working fine- but I did not develop a method for customising the email subject line with a variable. Where that is important (often)- I continue to use a 3rd party js form service.
Do you mean to say that using this, you were able to completely customize the email subject to remove the pesky [NETLIFY] branding? Because if so, that’s huge - many people have complained about this and there is an ongoing support thread for this here on the community.
Not to remove the [NETLIFY] branding unfortunately - just to insert a variable string into the message subject, so that each submission doesn’t have an identical subject. Still prefaced by [NETLIFY].