Time detaisl

Hi @KimDion38026

A similar question was raised on the below thread:

Also worth noting that instead of scrolling the time picker you can type 1130 for 11:30am or 1700 for 5pm (as examples) irrespective of the time format, militarily (24 hour) or am/pm.
Knack will convert the input when saved.
This should speed up time input too.

The below code is JavaScript, you need to update the view and field values.

$(document).on(‘knack-view-render.view_XXX’, function(event, view, data) {
$(’#view_XXX-field_XX-time’).timepicker({
interval: 30,
minTime: ‘9:00am’,
maxTime: ‘7:00pm’,
});
});
$(document).on(‘knack-view-render.view_XX’, function(event, view, data) {
$(’#view_XXX-field_XX-time-to’).timepicker({
interval: 30,
minTime: ‘9:00am’,
maxTime: ‘7:00pm’,
});
});

1 Like