aldryn-forms icon indicating copy to clipboard operation
aldryn-forms copied to clipboard

Implemented conditional logic based on fields values and different re…

Open sgordeychuk opened this issue 4 years ago • 0 comments

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:

  • Redirect page for condition case
  • Condition field (field name of the form field)
  • Condition value (used to check whether condition is met)
  • Use in condition (for email notifications, to define which email notifications should be sent if condition succeeded)

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

sgordeychuk avatar Nov 17 '21 11:11 sgordeychuk