Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

autofill a field with time

Community Beginner ,
Apr 08, 2024 Apr 08, 2024

New to making adobe pages and could use assistance on what I assume is a beginner question.

 

I would like to know if possible and if so how:

 

I would like to have a field auto fill with the time when a check box is filled

 

Thanks in advance

R

TOPICS
Create PDFs , Edit and convert PDFs , How to , PDF , PDF forms , Standards and accessibility
315
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 08, 2024 Apr 08, 2024
LATEST

Let's say field name is "Time", you can use this as Mouse Up action of checkbox, change "HH:MM" to the time format you want:

 

var time = util.printd("HH:MM", new Date());
this.getField("Time").value = (event.target.value == "Off") ? "" : time;

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines