Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.

Conversation

@sgordeychuk
Copy link

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.

yvladislav and others added 18 commits May 27, 2020 17:38
# Conflicts:
#	aldryn_forms/admin/views.py
#	aldryn_forms/cms_plugins.py
#	aldryn_forms/contrib/email_notifications/cms_plugins.py
* add option to limit allowed extensions of file fields

* convert serialization to utility function

* add option to define files that should be attached to email

* recognize extensions without the starting period

* update help text
* add option to store file to filer (default=True)

* remove misleading typehint
* create a copy of in-memory file to avoid unpredictability

* format fix
* Added a custom error message field on extension validation

* cleanup

* only make the static string gettext lazy

* Added accept attribute in frontend for file upload plugin

* minor optimization
# Conflicts:
#	aldryn_forms/contrib/email_notifications/cms_plugins.py
@kobecuppens1997 kobecuppens1997 force-pushed the form-conditions-redirect-support branch from 193d033 to ce63854 Compare March 25, 2024 09:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants