How to create Time field in Record Producer

manthenamah
Tera Contributor

How to create Time field in Record Producer

7 REPLIES 7

Dr Atul G- LNG
Tera Patron

Hi @manthenamah 

 

The Record Producer is just an interface used to ensure the data is captured correctly in the backend. Time Worked are available OOTB.

What is your use case for this requirement?

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG

****************************************************************************************************************

I have a requirement to capture only the time in a Record Producer.

I understand that ServiceNow does not provide a Time variable type for Record Producers. I found suggestions to use a Date/Time variable and then extract only the time using a client script. However, my requirement is slightly different.

Requirement:

  • I need a variable in the Record Producer that allows users to select or enter only the time (e.g., 10:30 AM or 14:30).
  • I do not want users to enter or select a date.
  • The captured value should be stored and available for further processing.

Is there any out-of-the-box solution, recommended approach, or best practice to achieve this in ServiceNow without using a Date/Time variable?

Hi @manthenamah 

 

But why do you want to capture this for the end user? The end user's job is simply to submit a Record Producer request, not to work with these backend processes, buddy.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG

****************************************************************************************************************

Ankur Bawiskar
Tera Patron

@manthenamah 

there is no out of the box variable type to capture Time

but you can use variable of type Custom and add widget to it and then handle

check below and enhance

Time picker variable type in catalog item 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader