0

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.

4
  • 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. 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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.