How do I concatenate 2 Ploneformgen form variables to use in CC Recipient of a Mailer adapter

104 Views Asked by At

I have to form fields. If I put either one of request/form/participant_1_email or
request/form/participant_2_email

into the CC Expression of a Ploneformgen Mailer Adapter, they work fine. I want to use both at the same time.

I have looked in the Zope Book, Googled multiple sites, including this one, but can't a solution for the syntax to do this. Any help is greatly appreciated.

2

There are 2 best solutions below

1
fulv On BEST ANSWER

It says Your expression should evaluate as a sequence of strings. Try this:

python:[request.form['participant_1_email'],request.form['participant_2_email']]
2
Mathias On

I would simply add a second mail adapter. Then you only fill the CC-Field of the second adapter. Works perfect for my cases (Plone 4.3.6 + PloneFormgen 1.7.17).