Problem:
Customer would like to change the option on the minutes field to 15-minute increments (0, 15, 30, 45).
Solution:
It is possible to use some jQuery to customize it and change the values of the select field.
Please add the following code to the javascript section of the form:
(function($, window) {
$.fn.replaceOptions = function(options) {
var self, $option;
this.empty();
self = this;
$.each(options, function(index, option) {
$option = $("<option></option>")
.attr("value", option.value)
.text(option.text);
self.append($option);
});
};
})(jQuery, window);
var options = [
{text: "0", value: 1},
{text: "15", value: 2},
{text: "30", value: 3},
{text: "45", value: 4},
];
jQuery("select[name$=\'minute]\']").replaceOptions(options);