divio / aldryn-forms

Flexible HTML forms for your django CMS projects
Other
40 stars 67 forks source link

Implemented conditional logic based on fields values and different re… #228

Open sgordeychuk opened 2 years ago

sgordeychuk commented 2 years ago

The requirement for these changes was to have the ability to set the different redirect page and send different email notification if form was submitted with the specific value. For example, if a radio field has specific value "radio1".

According to this requirement I've implemented new fields for FormPlugin and EmailNotification models:

If new fields are empty then this logic is not enabled, so it's not affecting the original functionality.