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

I need a field to be populated with the current time of the tablet it is being filed on

New Here ,
Mar 07, 2018 Mar 07, 2018

Copy link to clipboard

Copied

i need a "start time" field to be field with the current time once its clicked on

time must come from  the  tablet (android if relevant) it is being filled on

TOPICS
Acrobat SDK and JavaScript

Views

312

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 ,
Mar 07, 2018 Mar 07, 2018

Copy link to clipboard

Copied

The code to do it is:

this.getField("Field name").value = util.printd("mm/dd/yyyy HH:MM", new Date());

However, there's no guarantee it will work on a mobile device.

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
New Here ,
Mar 07, 2018 Mar 07, 2018

Copy link to clipboard

Copied

How do i decide of when the time is recorded?  it need to happen when the user clicks the box

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
Community Expert ,
Mar 07, 2018 Mar 07, 2018

Copy link to clipboard

Copied

LATEST

Then attach the code to the button's Mouse Up event.

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