Reputation: 29
I've created a site with 30 providers of workshops. Each provider has its own contact form. I now have a separate template for each provider. The hook "emailto" is, in fact, the only variable in the template. I would like to have one template, and specify via TV the mailaddress
that Formit should use.
I have tried it with &emailTo=`[[+mailaddress]]`
and &emailTo=`[[+tv.mailadres]]`
but unfortunately without result.
Can it be done? And if so, how?
Upvotes: 1
Views: 685
Reputation: 857
If the email address is saved in the template variable 'mailaddress' on each provider resource, you have to call FormIt with
&emailTo=`[[*mailaddress]]`
Upvotes: 3