How to create Time field in Record Producer

manthenamah
Tera Contributor

How to create Time field in Record Producer

7 REPLIES 7

@manthenamah 

Just following up to see whether my suggested link worked for you.

If you're still facing any issues, I'd be happy to help further.

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

Tanushree Maiti
Tera Patron

Hi @manthenamah 

 

ServiceNow does not have a native Time-only variable type,

You can follow this alternative step-by-step approach to validate a 24-hour time format (HH:MM)

 

1: Create the Variable

  • Open your Record Producer in the Service Catalog.
  • Under the Variables related list, click New.
  • Set the Type to Single Line Text and name the field
  • Enter your Question (e.g., "Enter the time (HH:MM)").

2: Add Regex Validation

  • Switch to the Type Specifications tab on the variable form.
  • In the Validation regex field, create or select a Regex that enforces the HH:MM format.

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

CN-L
Mega Sage

Hi @manthenamah, I'm curious about your use case for only wanting to capture time and not date & time - are you able to share any details?


Powered by caffeine, curiosity, and more failed attempts than I'd like to admit