Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

In ein Formular habe ich mehrere Textfelder angelegt die der Benutzer ausfüllen kann. Ich habe das Format vorgegeben und der Benutzer kann und soll es nicht ändern.

Nun habe ich aber auch ein Textfeld, in dem das Datum eingetragen wird.

Nun suche ich eine Möglichkeit, dass schon das aktuelle Datum in dem Textfeld steht. So wie bei Word oder Excel mit der Funktion jetzt() zum Beispiel.

Hat einer eine Idee ???

Danke.

Hallo sheyder,

welche Version von Acrobat hast Du denn? Möglich sind solche Sachen nur mit dem Acrobat Writer und Javascript. Wenn Du den Reader hast, hast Du leider keine Möglichkeit, etwas in der Richtung zu machen (zumindest soweit ich weiß). Falls Du die Vollversion hast, melde Dich einfach mal, dann helfe ich Dir weiter.

Viele Grüße,

Elbe

  • Autor

Jep, ich habe die Lösung.

Eigentlich ist es ganz einfach. Einfach ein Javascript mit folgendem Inhalt einfügen und schon geht es.

var f = this.getField("Datum");

f.readOnly = false

f.value = util.printd("dd/mm/yyyy", new Date());

f.readOnly = true

oder nur so:

var f = this.getField("Datum");

f.value = util.printd("dd.mm.yyyy", new Date());

wobei "Datum" die Bezechnung für das Textfeld ist. Kann auch "Schall und Rauch" sein wie unser Lehrer immer sagte.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.