Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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());