Date Time Picker modifications for Service Portal possible?

Travis Michigan
Mega Sage

I'm looking to change the date/time picker for some service portal forms.  I would like to change it so the options available for them to choose from are only every half hour, and between specific hours.  Also changing it so it doesn't display the seconds after they select would be nice, you can't pick them and they don't really matter in almost any situation we ask for date/time in the service portal.

TravisMichigan_1-1705676385354.png

 

 

2 REPLIES 2

Joe Wong
Tera Guru

Hi Traivs,

 

You might want to see this KB for using a BootStrap 3 Date/time picker

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0750194

 

The link in the article to the BootStrap3
https://getdatepicker.com/4/Options/
There is a option to set the stepping

JoeWong_0-1705677623066.png

I have not tried this myself, but it is something you might want to look into to see if it works for you.

 

Hope this helps.

Don't know that I can incorporate that, but at least I can see it is possible.  It seems like people have been asking for this for a while, I see posts going back for years.  Seems like something similar would be included by now.  But that might help me to figure out something, thank you.