TACC / Core-CMS

The Core CMS codebase used by TACC Portals.
https://cep.tacc.utexas.edu
2 stars 1 forks source link

CMD-100: Form Plugin, Required Multi-Checkbox is Unreasonable #821

Open R-Tomas-Gonzalez opened 3 months ago

R-Tomas-Gonzalez commented 3 months ago

Expectation


Users should be able to submit one or more options in a required multi-checkbox.

Background


Currently, when a developer/author/designer makes a required multi-checkbox, html requires the user to check all of the checkboxes in order to move forward. This eliminates the purpose of a multi-checkbox.

Dev Notes


This is a bug with HTML, which we can solve with JavaScript.

Locally Testing & Developing


Creating a Test

  1. Follow the ReadMe to get setup with the Core-CMS repository and program
  2. Sign in to the CMS using localhost:8000/admin, with the username and password you created
  3. While editing a blank page, add a form plugin by using the hamburger menu on the top right side of the window
  4. In the form plugin modal, give it a name, then scroll down to "Add another field"
  5. Edit the Text Field to be a Multi Checkbox
  6. Give it four(4) choices

Locally Developing

  1. At some point remove the error for admin and warning for user blocks of code, here: taccsite_ui/patterns/core-styles/components/django-cms-forms.hacks.css
  2. Developer may have to dig a little deeper on how to adjust the django form widget/plugin

Visual Example of Issue


https://github.com/TACC/Core-CMS/assets/63771558/f46e8306-a041-4f80-9330-16398542e18d