UI Macro to make a time picker for catalog item variable

joshua18
Giga Expert

Hi all,

On catalog item variables, you can choose Date or Date/Time as the type. Is there away that I can just do time? Like how you can on form field types?

I assume it's going to be through a UI Macro or UI Page, but I can't figure out how to do so.

Thanks in advance!

1 ACCEPTED SOLUTION

adityaghosh
Tera Guru

Yes,


I have created a Time Picker Variable (just time)


works in both UI16 & Portal



Please refer the following url:-



ServiceNow Share


View solution in original post

7 REPLIES 7

joshua18
Giga Expert

Anyone?


Hi Josuha,



You can create a string field and validate the format. duration field type is available.



Please mark this response as correct or helpful if it assisted you with your question.

Duration isn't available as a Catalog Item's variable field type.


Sorry. Wanted to say, Duration type is not available. You can use string field and validate the string format.



Please mark this response as correct or helpful if it assisted you with your question.