I’ve seen a few users frustrated that there is no way to have a unique identifier in the subject line of a Webflow form - which means you can’t differentiate between emails in the inbox without opening them.
I’ve come up with a really simple fix to this, which allows you to pull any data from a form and use it in the subject line.
Step 1: Set subject line
Go to site settings > forms
Add {{ formName }} in the subject line box
Step 2: Add your custom code
The custom code for this is some simple JavaScript that replaces the Form Name with your chosen form data. Therefore when the Form Name is sent to your email in the subject line, it is instead replaced with your custom form data.
Hi could you elaborate on your proposed alternative? How exactly should we configure this hidden field? This feature has been requested multiple times on the forum, I sure many would find it extremely useful…
@snappercridge - Webflow only lets you define the subject in project settings. The subject line can contain variables which are: siteName , formName like {{siteName}}
So you should be able to filter on the those. If you need dynamic subject lines you should look at a third-party form provider.
Sorting the formName by creating multiple forms isn’t always the use case. An example would be a single form that collections the same type of data (first name, last name email, etc, but needs to be sent to a specific email based on a location (like a franchise). Sorting without the aforementioned snippet means multiple forms that would have to dynamically appear based on the selected location.
Third party solutions are great, except they typically cost additional money.
The issue is that Webflow’s form system could be much better with a couple of small tweaks. Something like allowing a data field in the subject (formName.fieldName for example) would be a simple, but powerful addition.
Do you maybe know how I can modify the code so it ads a unique number to the subject line? (So we can follow up on our e-mails more efficient within a team )