Can anyone suggest a code or trick on how to differentiate the Forms submitted from each site? My client wants to have these two exact clone site, but they need to know which Form coming from which site.
I have search for variables available on webflow Form page. But there is no ‘domain’ variable available. I only see {{siteName}}, {{formName}}, etc.
I’ve got an idea to simply duplicate the site and then publish them. But the problem is the site is updated pretty often. Duplicating, changing the Form info etc before publishing the site everytime there are changes will be quite a hassle.
Insert a Webflow text field into your form, give it a unique class name that is not used anywhere else in the website (let’s use myHiddenTextfield). Set it to display none.
Now paste this in Site Settings > Custom Code > Footer Code:
I’ve tried to copy the code to the Footer Code in site setting, and then add an input text into the form. But what I got is the ‘myHiddenTextfield’ without any content in the email along with other fields data. Is there any step that I missed? I’m not familiar with coding, so I literally do just what you instructed.
It is not the SynergySpecialists or InhouseDDS because I test it out on webflow dummy site first before I’m sure it works. I have included the myHiddenTextfield inside the form on that page.
When you key in myHiddenTextfield into the designer, the actual published site classname is converted into lowercase, that’s why the selector couldn’t find that element.