Skip to main content
Participant
April 29, 2023
Question

aktuelle Uhrzeit per Klick einfügen

  • April 29, 2023
  • 1 reply
  • 765 views

Hallo,

Wie kann ich ein Feld so programmieren/einstellen, dass per Mausklick die aktelle Uhrzeit eingetragen wird?
--> JavaSckipt?

-->andere Optionen

 

Wenn die Uhrzeit einmal eingetragen ist, sollte diese nur noch manuell bearbeitbar sein.. Das heißt: wenn ich erneut reinklicke darf es nicht mehr automatisch aktualisiert werden .

Markus

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 29, 2023

Yes, a script is the only way to do it.

You can use the following code as the field's On Focus event:

if (event.target.valueAsString=="") event.target.value = util.printd("HH:MM", new Date());