Posted: 6 Nov 2019 11:18 EST Last activity: 7 Nov 2019 12:22 EST
Implement calender control and disbale all dates till next 3 days in the calender to support tele interview schedule
There is a requirement to implement calender control and disbale all dates till next 3 days in the calender to support tele interview schedule. Used pega OOTB calender pxDateTime for this requirement. We can disable weekends with the current pega functionality of selecting Disable weekends checkbox. But we are not able to custom code any disable calender requirements other than weekends.
***Edited by Moderator Marissa to update platform capability tags****
Even i tried the similar scenario and could not achieve it with OOTB. As the below article, Looks there is no way you can restrict the user to select the values in calendar. Only solution is to validate the date after the user selects the date.
Praneeth: Instead of writing custom control, can you meet the same requirement using a simple helper text on the UI with additional validation on focus out/form submit to prevent users from selecting a day within 3 days from the current date?
Snehitha : We did try the to put the validation option on the table Praneeth but the ask from business was to disable 3 days in the future in the calender like how we disable weekends and also holidays. Can you please suggest any approach to achieve this requirement??
Posted: 1 year ago
Posted: 7 Nov 2019 12:22 EST
Praneeth Purighalla (PraneethPurighalla)
Lead System Architect - Pega Consulting
How far ahead in future would the user be able to pick? Since it is for scheduling interviews, I don't think the user will pick any date more than a few weeks in the future max. If my assumption is true, can you populate the next 'x' weeks days (starting from current day + 3 and filtering out weekends) and display them in a dropdown instead of using the date control?
I would still try to push back strongly and convince the business that it is preferable to stick to OOTB control and meet their requirement by adding validation.