- πΊπΈ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.
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.
N/A
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"
Create patch to introduce the proposed workflow with accompanying configuration items to make it "opt-in".
New configuration form options, as well as new button that allows user to reject an agreement (not to be confused with revoking an agreement).
Needs review
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
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.