For a specific kind of entry I need the time in a date/time field to either automatically display as 23:00/11pm on the user dashboard, or, permanently set the time on that date/time field to 23:00/11pm.

  • 1
    So, you want that field to have 11pm as default value if nothing was set?
    – Johannes
    Jun 11, 2020 at 8:15
  • @Johannes Yes, exactly :) Jun 12, 2020 at 18:34
  • Maybe you can use this plugin: doublesecretagency/craft-cpjs. Then target your field and change its value on load using JavaScript. Not the cleanest, but probably the easiest.
    – Romain P.
    Jun 15, 2020 at 10:07
  • Yes, you could do this by injecting JS and manipulate the <input> or by writing a custom module that modifies the value. Do you need further advice on that?
    – Johannes
    Jun 15, 2020 at 21:07


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.