Plone FormGen Override Subject Line

134 Views Asked by At

I am new to Plone and am working a form in Plone 4.1. I would like to override the form mailer subject line so it is a string from the input from a subject field from the form and then the form name. I am not sure how to write this though.

1

There are 1 best solutions below

3
Ida On BEST ANSWER

Go to the form, click on "Contents", click on the Mail-adapter, click on "Edit, click on "Overrides" and insert this line in the field "Subject Expression":

python: folder.Title() +  ': ' + request.form['subjekt']

Where subjekt stands for the field-name you want to get the value of.

Here's a helpful doc about the available context-variables:

https://docs.plone.org/working-with-content/managing-content/ploneformgen/override_defaults.html