Display Time Field in a portal page

Chitra23
Tera Contributor

Hi, 

 

I have a field in a custom table which is of type "Time".  It is displayed properly (3 textboxes for HH, MM and SS) when i see it in the form. But it is displayed as a single text box when I use a form widget to show it in a service portal page.

I want to show 3 text boxes so that the user can enter HH,MM and SS.

 

 

4 REPLIES 4

Community Alums
Not applicable

Hi @Chitra23 ,

 Seems like you have selected "String" type as your variable type !!

You need to select the field type as date/ time , then you could see as shown below:

 

SandeepDutta_0-1681789672145.png

 

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Chitra23 

what type of variable is required on form?

what's the relationship between the Time field on custom table and this variable?

are you creating record producer and trying to map the variable with that field?

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

Chitra23
Tera Contributor

The field is of datatype "Time". I'm trying to replicate something similar to schedule job script execution (sysauto_Script) table form, where the user can select  the time that they want their scheduled job to run. I've created a custom table which will collect time from the user and do some process before creating an entry in sysauto_Script table.  I'm using the form widget to display this custom table in a service portal page. My requirement is user should be able to enter HH, MM and SS .

Have you been able to find a solution to this issue?