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

Link Date Boxes Script

New Here ,
Jun 04, 2021 Jun 04, 2021

Hi there everyone,

I'm trying to find a script that will grab the date inputed by the user in Date1 and have Date 2 display the same date.  Date1 and Date 2 are going to have different date formats for display purposes, Date 1 uses slashes and Date 2 will use dashes for its format.  Date 2 is going to be a read only.  Any help is much appreciated :).

Date1.PNGexpand image

 

Thank you 

TOPICS
Edit and convert PDFs , JavaScript , PDF forms
632
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
1 ACCEPTED SOLUTION
Community Expert ,
Jun 04, 2021 Jun 04, 2021

After you formated both fields to use format you want, as calculation script of second field use this:

event.value = this.getField("Date1").value;

View solution in original post

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 ,
Jun 04, 2021 Jun 04, 2021

After you formated both fields to use format you want, as calculation script of second field use this:

event.value = this.getField("Date1").value;

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
New Here ,
Jun 04, 2021 Jun 04, 2021
LATEST

That did it! Thank you 🙂

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