Render a datetime as datepicker and text field

  • 1
  • Question
  • Updated 2 years ago
  • In Progress
I would like to render a Datetime field as two different inputs: a datepicker and a text box where the user can input the time in their timezone as military time. I'm having trouble figuring out how to put both fields together to update the field when the model is saved. Any help would be greatly appreciated.
Photo of Scott


  • 100 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 33,040 Points 20k badge 2x thumb
You might want to consider using two ui-only fields and create a model action triggered when the values change to run some javascript which would update your database field.
On query you would need to get the value from the field to fill in your ui-only fields.