Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem
Certain forms required a user to login.
Solution
Add per webform settings that redirects to login screen with a custom message.
Notes
Works identical to Redirect 403 to User Login but allow per Webform setting and message. Custom message per webform is the key difference and the specific requirement being sponsored by my client.
Tasks
- Add 'form_login' and 'form_login_message' to webform settings
- Add 'submission_login' and 'submission_login_message' to webform settings
- 'default_form_login_message' to webform admin settings
- 'default_submission_login_message' to webform admin settings
- Update scheme.
- Update export configuration.
- Add EventSubscriber that redirects to login.
Comment | File | Size | Author |
---|---|---|---|
#7 | webform-2923047-redirect-login-7.patch | 169.25 KB | jrockowitz |
| |||
#5 | webform-2923047-redirect-login-5.patch | 167.28 KB | jrockowitz |
|
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented