powermail icon indicating copy to clipboard operation
powermail copied to clipboard

Reporting (Form): Multilanguage -> Labels instead of values in powermail_all?

Open ursbraem opened this issue 3 years ago • 1 comments

I like the "Reporting (Form)" part of the powermail module. It gives a good impression of what happens eg if you do a survey or a voting (general assembly cancelled due to Corona...) with powermail.

But for radio/checkbox/select in a multilanguage form, I get this:

image

So it handles the french replies as different value than the german ones. Of course, this is because the field has different values for each language.

If I do

Ja|yes
Nein|no

in both languages, the count is correct.

But in the generated email {powermail_all} we get the value, not the label:

image

As this is undesired, the reporting module will remain unusable. Do you have an idea for a workaround? Is there an option to allow Labels instead of values in {powermail_all}?

ursbraem avatar Mar 07 '21 15:03 ursbraem

PS:

If powermail_all isn't displayed to the customer, this is a robust workaround, in the translation:

Oui|Ja
Non|Nein

It also has a positive effect on the CSV/XLS export, as answers on checkboxes / radio / select fields are harmonized

ursbraem avatar Mar 07 '21 15:03 ursbraem