Forums

Calendar field editable for the user

support210 19 Dec, 2024

How can I make the calendar field editable for the user?

Riccardo Rausch
https://rausch.it
Max_admin 20 Dec, 2024
Answer

this is not possible, if you want the field to be editable then you may use a text field with the "input mask" and set the mask to be of the date format you need

Remove the mask options and set a mask variable = dateoptions

Then in a Javascript view you need to define that variable:

document.addEventListener("DOMContentLoaded", function(event) {
dateoptions = {
    mask: Date,
    lazy: false,
    autofix: true,
    blocks: {
      d: {mask: IMask.MaskedRange, placeholderChar: 'd', from: 1, to: 31, maxLength: 2},
      m: {mask: IMask.MaskedRange, placeholderChar: 'm', from: 1, to: 12, maxLength: 2},
      Y: {mask: IMask.MaskedRange, placeholderChar: 'y', from: 1900, to: 2999, maxLength: 4}
    }
  }
})
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
support210 20 Dec, 2024

Thanks for the clarification. I've had this request from two customers now. It might be worth considering this option in a future update.

Riccardo Rausch
https://rausch.it
Max_admin 20 Dec, 2024

you mean making the calendar editable ? what about the text mask I provided ? it does not satisfy ?

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
support210 20 Dec, 2024

I'm referring to the date field that can be edited by the user via his keyboard.

Riccardo Rausch
https://rausch.it
You need to login to be able to post a reply.