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

autofill a field with time

Community Beginner ,
Apr 08, 2024 Apr 08, 2024

Copy link to clipboard

Copied

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

Views

113

Translate

Translate

Report

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

Copy link to clipboard

Copied

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;

 

Votes

Translate

Translate

Report

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