[MGNLUI-6491] Required Twin Column Field not working Created: 17/Sep/20  Updated: 15/Mar/21  Resolved: 15/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.3
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Monica Damborenea Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Support for required property
Story Points: 3

 Description   

When setting a Twin Column Field as required in a dialog, the user can save the dialog without choosing any item. (Using new 6UI or 5UI)
The user should choose at least one item to save the dialog when the Twin Column Field is set to required.

Steps to reproduce

  1. Create a Twin Column Field with required set to true
    form:
      properties:
            homeConditionsOne:
              label: twin
              $type: twinColSelectField
              required: true
              datasource:
                $type: optionListDatasource
                options:
                  - name: apartment
                    value: apartment
                  - name: balcony
                    value: balcony
                  - name: garden
                    value: garden
                  - name: house
                    value: house
    
  2. In the pages app, create a new Twin Column Field, do not select anything, and save
  3. See that you are allowed to save even with no value selected 

Expected results
You should get a "This field is required" or similar error
 
Actual results
You are able to save and there is no error.



 Comments   
Comment by Quach Hao Thien [ 15/Mar/21 ]

covered in https://jira.magnolia-cms.com/browse/MGNLUI-6604

Generated at Mon Feb 12 09:37:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.