Specific Hour:Minutes:AM/PM required value request
I have a request to capture an specific time with format HH:mm AM/PM. I'm using Date time control with display mode "Dropdowns lists", however when I select in UI just the AM or PM, it allows me to pass without setting the hour or the minutes, I need to have the 3 values. Please advice, I'm using Pega Infinity 8.
see atached image.
***Edited by Moderator Marissa to update platform capability tags****
After looking into your screenshot noticed 3 drop down list boxes for the field which means that you might have provided 3 properties to store its dropdown selected value. If that's the case then you need to add the validation on those 3 fields as mandatory, if not can you please share the design time configuration screenshots for these 3 drop down fields along with your validations.
I don't find any OOTB way you can try to make it required because if you choose the value of all the 3 fields then it will be stored as "2:02 AM" format in the clipboard. Let say if you choose either Hours/Minutes/(AM/PM) the property value will not be empty, so i would suggest you to write a simple edit validate rule to cross check whether the property holds this format value (HH:MM AM/PM). This way you can make sure the user choose all the field values with a simple java code.