Description of problem: If you create a service dialog with a chcek box and you mark the check box as required, and save it, future attempts to uncheck the required box for that check box do not work. It appears OK, but upon reediting it is apparent the Required is marked as required still. Also, utilizing the service dialog from a catalog item indicates that the field is required. I'm not sure a Required option even makes sense for a checkbox. A check box's existence on the form means it's either true or false. Making it required has the effect of not being able to submit the request unless the check box is checked which I do not think is the intent. Version-Release number of selected component (if applicable): 5.7.1.3.20170221135006_818f133 How reproducible: Every time.
I questions the same thing when this feature was first requested, but the use-cases for supporting the required flag on the checkbox makes sense. The main use-case is enforce ackownlgedgment of something before the dialog can be submitted. This could be a "Do you agree to the terms?" type of question or just validating that the user interacts with the dialog instead of just pressing submit.
I have added this to the case already: the request is not with regards to the GUI (although the term "ceckbox" is leading to that thought) but the API. If they have a checkbox item, and the request comes through the API, they want to enforce that it's either true or false but not omitted. I think in that way, it does makes sense. pj
This should be fixed by this commit: https://github.com/ManageIQ/manageiq/commit/7a95d49b47b434cbd3d6e7d2b223ebdc53fe33e0 Which originated from this BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1495971
Fixed in 5.9.0.4.20171024163837_ef71ea6
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0380