Support

Account

Home Forums ACF PRO Time picker increment/steps

Solving

Time picker increment/steps

  • I would love the time picker to display only the 15min increments instead of all minutes, can you help me set this up please?

  • I implemented this JS referencing the JS API.

        acf.add_filter('time_picker_args', function (args, field) {
            args.timeFormat = 'h:mm'
            args.altTimeFormat = 'HH:mm'
            args.stepMinute = 15
    
            return args;
        });
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.