Duration Field

Hachim AAZAOUI
Tera Contributor

Hi All,

 

My client have an urgent need, we need to display a field with this time format only hh:mm, anyone have an idea which type of field can be used for this need

 

PS: This field need to be filled manually 

3 REPLIES 3

maheshkhatal
Mega Sage
Mega Sage

@Hachim AAZAOUI  I don't  think there is a specific field which stores hh:mm. Howver you can use Duration field i.e. Glide Duration where you can store hh and mm part ignoring Day and Seconds part. 

 

maheshkhatal_0-1765559213388.png

 

Please mark my response as helpful if it helped you. 

Thanks,

Mahesh.

Sarthak Kashyap
Mega Sage

Hi @Hachim AAZAOUI ,

 

I tried your problem in my PDI and it works for me please check below solution

 

I created a field type is Time and also created a client script which runs onLoad and added below code 

SarthakKashyap_0-1765560360417.png

 

function onLoad() {
    //Type appropriate comment here, and begin script below

	document.getElementById('incident.u_show_timedur_sec').style.display='none';


}

SarthakKashyap_1-1765560398444.png

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak

debendudas
Mega Sage
Mega Sage

Hi @Hachim AAZAOUI ,

It’s not possible without performing DOM manipulation, which is not recommended.


However, you can create a Duration type field and add the attribute max_unit=hours. This will make the field appear as shown in the screenshot below:

debendudas_0-1765561258033.png

 

If this solution helps you then, mark it as accepted solution ‌‌✔️ and give thumbs up 👍!