ROCLASI wrote:Hi Rossen,
I guess something like this could be built into the JSDatePicker module.
Or do you *require* that it's all done in/on the field on the form ?
mboegem wrote:Hi Rossen,
why kicking a 9yr old thread up for this?
I think there's multiple ways to have easy time entry now.
Just put up a date field and set the format to 'HH:mm|HHmm'
Users will see a nice time portion: '13:45', but will be able to enter it as '1345'
Another nice formatting is: 'HH:mm|_|mask'
Users will see the same as above, but if empty, the field will show '__:__' and again users will be able to enter like '1345'
be sure to tick the checkbox of the 'selectOnEnter' property of the field.
rossent wrote:This is exactly what we have currently - using the CALENDAR type field (to validate the input) with a format which includes only the time part - however the Calendar button is still present and cannot be removed/disabled, so users can still click it... and then start asking questions like: "why there is a calendar on a time field? what date should we select?
mboegem wrote:rossent wrote:This is exactly what we have currently - using the CALENDAR type field (to validate the input) with a format which includes only the time part - however the Calendar button is still present and cannot be removed/disabled, so users can still click it... and then start asking questions like: "why there is a calendar on a time field? what date should we select?
Just use a type: 'TEXTFIELD' for it.
No need for a calendar type field at all...
Users browsing this forum: No registered users and 3 guests