Enterprise: Dropdown validation occasionally fails in modals

Created on 14 Nov 2018  路  9Comments  路  Source: infor-design/enterprise

Describe the bug
I have a modal window with a dropdown list that is required and some required text boxes. In the right sequence of events, a value in the dropdown list doesn't set the modal submit button to enabled. Behind the scenes, the isValid property of the dropdown list is set to False when it clearly has a value, and that's causing the modal to think that not all required fields are populated. I first saw this in Xi 4.10. I've upgraded to 4.12.1 (4.13?) and still see it.

To Reproduce
I've modified test-validation-prefilled.html to create this.
Steps to reproduce the behavior:

  1. Go to http://usalvwaldevd16:4000/components/modal/MLtest-validation-prefilled.html
  2. Click on 'Add Context.'
  3. CLEAR OUT text from one of the text boxes.
  4. select an item in the dropdown list - note that the isValid property is False.
  5. Add text to the textbox, so all required fields are now populated.
  6. Note that the submit button is disabled.

Expected behavior
Submit button be enabled when all required fields are populated

[3] type

All 9 comments

Definitely seems like a bug, as a workaround you could disable validation on the modal

I need the modal validation to work. The workaround I use is to fix the isValid property on the change event of the dropdown list:

        function ddlModalRelationshipToLicensee_change() {
            if ($("#ddlModalRelationshipToLicensee").val() != "") {
                $("#ddlModalRelationshipToLicensee").data('dropdown').element.data('isValid', true);
            } 
            else {
                $("#ddlModalRelationshipToLicensee").data('dropdown').element.data('isValid', false);
            }
      }

But I shouldn't have to.

Moving to QA Failed.
Issue still exist. The submit button is still not enabled when all fields are populated.

screen shot 2018-12-13 at 3 48 06 pm

@deep7102 Can you check into why this is doing that - for 4.14

@janahintal http://usalvwaldevd16:4000/components/modal/MLtest-validation-prefilled.html is on the reports server and we dont control that. Maybe they didnt fix that page.

Try testing only on https://4140-beta0-enterprise.demo.design.infor.com/components/modal/example-validation.html where we have a fix for the dropdown issue.

Hi, @tmcconechy moving this ticket to QA failed for the scenario below.
Tested in: https://4140-beta0-enterprise.demo.design.infor.com/components/modal/example-validation.html

Steps to replicate:

  1. Populate Email
  2. Populate Description
  3. Leave the Dropdown list blank
  4. Click > Cancel
  5. Open the Modal again
    _Actual_: Submit is Enabled
    Expected: Submit button is Disabled

screen shot 2018-12-17 at 2 27 34 pm

Hi, @tmcconechy moving this ticket to QA failed for the scenario below.
Tested in: https://4140-rc0-enterprise.demo.design.infor.com/components/modal/example-validation.html

Steps to replicate:
Populate Email with INVALID email e.g _'[email protected]'_
Populate Description
Populate Dropdown List
Click > Cancel
Open the Modal again
Actual: Submit is Enabled
Expected: Submit button is Disabled

screen shot 2018-12-19 at 3 58 39 pm

@deep7102 can you have another look for 4.14.x. Maybe just need to rerun the logic on modal load again.

This issue is now resolved.

Was this page helpful?
0 / 5 - 0 ratings