You are viewing limited content. For full access, please sign in.

Question

Question

Military Time / HH:mm

asked on January 29, 2020

I am trying to format time to include HH:mm with military time. 

The default time on LF Forms is HH:mm:ss.  It defaults to on the hour only in the drop down.  If i type it in manually i can input exactly what i want. 

2 questions:  Can i format it to HH:mm removinge the ss?  and Can the drop down show increments a different way? 

1 0

Replies

replied on January 29, 2020

The built-in timepicker is difficult to customize. You might be better off with starting with a standard single line field and adding the built-in time picker yourself. Then you have better control over the options.

$(document).ready(function(){
  $('#Field44').timepicker(
    {
      step: 15,
      timeFormat: 'H:i'
    }
  );
});

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.