Duration field validation

Roshani
Tera Expert

Hi All,

I have a duration field "Processing Time"  DD:HH:MM:SS and as part of requirement we have removed days column by adding attribute : "max_unit =hours. So it changed to HH:MM:SS .  When I am adding hours more than 24 like 31:80:80 , so the field value gets changed . 

Also If i am using Time type field which will be in HH:MM:SS , when I am trying to check for 24 hour validation and adding value as 35:80:80 , and on saving the form field value is getting changed. to some other value.

1 REPLY 1

Muhammad Khan
Mega Sage
Mega Sage

As per my understanding this is the expected behavior, if you do not modify the duration field attribute max_unit=hours and then add hour value like 48 you will observe that 2 days have been added to the days cell.

As for the Time type field I guess you cannot add more than 24 hours, otherwise it will be converted to 0.

Are you looking for duration to be shown as hours only? then why not keep the days cell as well and apply some sort of conversion to convert duration to total number of hours.