Insert a “HTML embed” element within your Form.
In the HTML embed element settings, set up some HTML code, like <input type="hidden" name="Info" value="Visitor sent message from the book page XXXX and expects to be contacted.">
What’s marked with “XXXX” above, replace by a CMS field using “+ Add Field” in the top right of the HTML embed settings.
Of course you can add an URL to the PDF, either by using a field in the CMS or by calculation with JS in case you have a system naming these PDF files.
@Roald for my fully automated solution you’ll need to use Zapier and some email marketing service (like ConvertKit or MailChimp) that allows you to send emails based on segments.
Here’s how…
Setup Email Marketing Service:
Setup an automated email for each PDF download (containing the link).
Setup a “segment” for each of those automated emails.
The idea is when a new subscriber enters a segment an email automatically gets sent (with the PDF download link).
Setup Webflow Form:
Create a cms collection of “segments” (ex: “I like ice cream” shown in the dropdown could have a value of “ice_cream” for the segment name)
Display this list in the form in a select element
Bind the segments cms collection to it
Setup Zapier:
Create a Webflow zap in Zapier that triggers on a “Form Submission”
Collect which segment the user selected (ex: “ice_cream”)
Send the users email and segment (collected on the form) to your Email Marketing Service
Create a new subscriber at your Email Marketing Service with this segment
An email will automatically be sent to this email address, with this segment, sending the correct pdf download link.
Hi, could you please give an example of how you would format the last part of your html block?
I am referring to value="{{CMS item}}" in the sample block <input type="hidden" name="FORMNAME" value="{{CMS item}}">
How do you call the value of a CMS item?