DescriptionBeate Guldenschuh-Bihannic
2019-03-26 20:31:14 UTC
Created attachment 1548229[details]
Datepicker - no option to set field mandatory or not
Description of problem:
Datepicker Field Cannot be Set to Required A normal Text Box field has more options like "Required", so a Ruby Method has to be written to make sure, the field is not empty, which however is not nice, as we do not get a useful error message on the screen when the field is empty.
Version-Release number of selected component (if applicable):
5.10.0.33.20190129203322_85a1e4e
How reproducible:
Create a new service dialog with a datepicker field and empty it, when in the Service Catalog, Order-mode.
Steps to Reproduce:
1.In Automation -> Automate -> Customization create a new service dialog and add a Datepicker field to it. Inspect the possible options. There is no "Required" option.
2. Add the service dialog to Services
3. Order via the service dialog
4. Empty the datepicker field
Actual results:
Datepicker field has no option to set the field content to be required.
Expected results:
Datepicker field has an option to choose if the field content is required or not.
Additional info:
New commit detected on ManageIQ/ui-components/master:
https://github.com/ManageIQ/ui-components/commit/1e89fe6d65739665d248a70e222c434952c1165f
commit 1e89fe6d65739665d248a70e222c434952c1165f
Author: Roman Blanco <rblanco>
AuthorDate: Wed Apr 3 07:14:52 2019 -0400
Commit: Roman Blanco <rblanco>
CommitDate: Wed Apr 3 07:14:52 2019 -0400
Allow datepicker field in service dialogs to be set as required
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1692980
src/dialog-editor/components/modal-field-template/date-time-control.html | 15 +
1 file changed, 15 insertions(+)
Comment 5Niyaz Akhtar Ansari
2019-05-07 11:09:59 UTC
In service order page Submit button is disabled when DatePicker and TimePicker fields set as required in dialog.
Hence failing this BZ.
Tested in Version 5.11.0.2.20190430174828_0e34dea
Created attachment 1548229 [details] Datepicker - no option to set field mandatory or not Description of problem: Datepicker Field Cannot be Set to Required A normal Text Box field has more options like "Required", so a Ruby Method has to be written to make sure, the field is not empty, which however is not nice, as we do not get a useful error message on the screen when the field is empty. Version-Release number of selected component (if applicable): 5.10.0.33.20190129203322_85a1e4e How reproducible: Create a new service dialog with a datepicker field and empty it, when in the Service Catalog, Order-mode. Steps to Reproduce: 1.In Automation -> Automate -> Customization create a new service dialog and add a Datepicker field to it. Inspect the possible options. There is no "Required" option. 2. Add the service dialog to Services 3. Order via the service dialog 4. Empty the datepicker field Actual results: Datepicker field has no option to set the field content to be required. Expected results: Datepicker field has an option to choose if the field content is required or not. Additional info: