Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Advanced work with calendar

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Advanced work with calendar

Unread post by kknm »

Is there any way or code to enter defaul TIME in calendar.
The company operates in two shifts - 08:00 and 20:00. To reflect all work, a timesheet is used, which can be filtered by date and time mentioned above. Unfortunately, to select a time in the calendar you have to turn the mouse wheel a lot and then stop exactly. I'm already thinking about checking the entered date-time-local, but I guess there must be an easier way to set the programmed time.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Advanced work with calendar

Unread post by kev1n »

Can you show what you mean by "to select a time in the calendar you have to turn the mouse wheel a lot and then stop exactly." ?
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Advanced work with calendar

Unread post by kknm »

date-time.png
This is what the calendar selection field looks like on my form. First, the user selects the date, then the hour and then the minutes. At the moment of retaking a shift, in which events can accumulate every minute, every minute is important for the overall picture of the shift. Errors when entering the start of a shift may result in products from another shift being counted.
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Advanced work with calendar

Unread post by kev1n »

The datetime-local HTML element is part of the HTML5 specification and not a native nuBuilder element.
It allows you to set a default date and time, but does not seem to provide a way to set a default value specifically for the time part alone.
(you can also search for posts on stackoverflow etc.)
Post Reply