Thread tagged as: Problem, Forms

Perch Forms Response Email - Skip empty fields

In the E-Mails sent by perch forms 1.7 (recently updated from 1.5), fields the user left empty are included.


Chewing gum: 1

If I remember correctly, they used to be skipped before. So the email would contain only "Chewing gum: 1", which would be much more readable.

Is there a way to omit empty fields from the generated email?

Thanks Urs

Urs Bräm

Urs Bräm 1 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The email isn't customisable at the moment, but it is planned.

Thanks - please also consider making the listing in the backend customiseable (so users can define which fields should appear, similar to "Item list column IDs".

And I've hacked it into the form class for the moment...

                            $data['fields'][$attrs->id()] = $field;                                 

cheers urs