I allow various experts provide their services trough my website. I have 50 experts in my database and each of them have their profile page set up. I would now like to create a contact form on each profile page so visiting users can send them a message directly.
Perfect scenario would be for the contact form to pull the expert’s email adress from CMS and send the message directly to him/her.
If you really want to use forms, you can do this using Logic, or another automation provider like Make.com.
The main trick is that on the Collection page for the expert, you need to pass their email address in to an Email-type field in your form, and make it hidden. You’ll need to use script to set the value of the field, e.g. $('#expertemail').val('EMBED EMAIL VALUE HERE')
You need an actual field rather than an input type=hidden in order for Logic to pick up the email value.
To send your email, you’ll need a 3rd party provider like MailJet or Google Mail to act as the sender of the lead.