Best way to add live time field?

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

    #1

    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
    EspoCRM product developer
    • Mar 2014
    • 9618

    #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.

    Comment

    • Russ
      Senior Member
      • Feb 2022
      • 513

      #3
      thanks

      Comment

      Working...