Best way to add live time field?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Russ
    Senior Member
    • Feb 2022
    • 473

    Best way to add live time field?

    Hey guys, I need to add specific date time, let's say local time in a specific timezone now,
    Wysiwyg's support is limited to HTML without iFrame or JS, what is the next stop?

    (Time has to be live with minutes/seconds running)

    Example:
    "Las Vegas, NV: 4:31 PM (local time)"
    in a minute
    "Las Vegas, NV: 4:32 PM (local time)"

    Thank you
  • yuri
    Member
    • Mar 2014
    • 8881

    #2
    This would require JS coding. You will need to create a custom readOnly notStorable field. Assign a custom view for it. And render the time with JS.

    Or opt to server side. Create a custom readOnly notStorable varchar field. Create a field loader (metadata > recordDefs) that will populate this field each time the record is opened. But the field won't update as time goes. Only when the record view is refreshed.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...