Add further options and support for users who don't accept agreements

Created on 17 November 2020, about 4 years ago
Updated 24 March 2023, over 1 year ago

Problem/Motivation

We have a use case whereby we'd like to go with "Accept" and "Don't Accept" buttons over a checkbox with a "Submit" button. In the event that a user doesn't accept the agreement, we route the user to a different page, instead of refreshing the current page with "You must accept the agreement" verbiage. It would be great if the module could provide the options and configuration to set up this type of a flow.

Steps to reproduce

N/A

Proposed resolution

The flow described in this use case is obviously not desirable for all, so my proposal is that we introduce a few configuration options:

Configuration item 1:
"Form Type"
The options for this new field are "Agreement checkbox with Submit button" and "Reject and Accept buttons". The module defaults to the existing checkbox flow to ensure backwards compatibility.

Configuration item 2:
"Reject Button Text"
This text will be displayed on the "Reject" button.
This option is only presented if the form type is "Reject and Accept Buttons"

Configuration item 3:
"Rejection Destination"
What page should be displayed after the user rejects the agreement?
This option is only presented if the form type is "Reject and Accept Buttons"

Remaining tasks

Create patch to introduce the proposed workflow with accompanying configuration items to make it "opt-in".

User interface changes

New configuration form options, as well as new button that allows user to reject an agreement (not to be confused with revoking an agreement).

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States malik.kotob

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States afinnarn

    It's been a while since I've patched or maybe this should be a MR now...but whatever, here is a patch that works for me on at least the alpha2 release of 3.0.0.

Production build 0.71.5 2024