Catalog Item - Variable Time only required

lynnmcfadyen
Kilo Explorer

I am new to the ServiceNow community. I have tried to search for an answer to my question, but not found any matches.

I am currently building a Service Catalog item, one of the questions relates to whether the action has to be regularly scheduled, if it is then we ask them to select a frequency Daily, Weekly, Monthly. After selecting the value for frequency we want to provide the customer with a TIME box only. However, ServiceNow only provides a DATE/TIME variable from what I can see. Can anyone help?

 

Thanks

7 REPLIES 7

Jace Benson
Mega Sage

Their isn't a time type of variable, the only ways I see this working would be to


  • Use a string type of variable and force the user to enter in the time.
  • Use a dropdown with choices of allowable time's like maybe 24 options one for each hour.

Instead of the second option (drop down) you could add suggestions to the string field which would pre-populate the field with the right format. (The little light bulb next to a field)


Bhavesh Jain1
Giga Guru

The responses you have got above are the prefered way. In case the customer is very adamant on having a time field, you can use your javascript skills to create such field in a UI macro. Then create a catalog variable of type macro and call this new macro.


lynnmcfadyen
Kilo Explorer

Thanks for your help i have implemente with the string option. However, long term will try to find someone with Java skills to help with the UI macro