Closed (fixed)
Project:
EU Cookie Compliance (GDPR Compliance)
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2019 at 12:50 UTC
Updated:
23 Oct 2020 at 18:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
svenryen commentedUpdate: I did some testing and the code works, but when we set
requiredusing#states, we still need to validate the input on form submit to check that the required fields are filled out.In D8, there's client side validation of the form based on the required states, which stops the form from submitting if the required fields are not filled out.
Comment #3
reszlithank you fields are required even if thank you banner is not enabled
the UX could be improved by using #states for the 'required' attribute of these elements
Comment #4
svenryen commentedAddressing the issue that @reszli pointed out, here are patches for 7.x and 8.x.
Test notes:
- Verify that the remaining fields in the "Thank you banner" pane are hidden when "Enable Thank You banner" is unchecked.
- Verify that the remaining fields in the "Thank you banner" pane appear when "Enable Thank You banner" is checked.
- Verify that you get errors on empty fields in the 3 Thank you fields.
Comment #6
neslee canil pinto8.x branch patch needs a reroll against latest dev.
Comment #7
neslee canil pintoRerolled patch and added semicolon at the end of js function
Comment #8
neslee canil pintoComment #10
neslee canil pintoCommitted to dev branch. Thank you.
Comment #11
neslee canil pinto