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

Using a TextBox on first page and repeating with "Read Only" on other pages

Community Beginner ,
Aug 06, 2022 Aug 06, 2022

Copy link to clipboard

Copied

I have a form that I am building and I am trying to use a Date Field as sort of a Header. So on the first page I will fill he Date Field with a date, and I want the date to be visible on proseding paged but read only.

 

I have tried with a Date Field called "Date" on the first page and then the Date Field on the next page I called "Copy_of_Date" and made it read only and added this.getField("Date").value; but I am getting an error mesage 2022-08-06.png

TOPICS
General troubleshooting , JavaScript , PDF forms

Views

395

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

correct answers 1 Correct answer

Community Expert , Aug 06, 2022 Aug 06, 2022

As Validation script of "Date" field use this:

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

Votes

Translate

Translate
Community Expert ,
Aug 06, 2022 Aug 06, 2022

Copy link to clipboard

Copied

Set the format of field "Copy_of_Date" to None and you will see what value you get.

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 Beginner ,
Aug 06, 2022 Aug 06, 2022

Copy link to clipboard

Copied

Okay I changed the "Copy_of_Date" format to none, and is does not populate the field at all. I am not getting the error but it does not show the date.

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 ,
Aug 06, 2022 Aug 06, 2022

Copy link to clipboard

Copied

As Validation script of "Date" field use this:

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

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 Beginner ,
Aug 06, 2022 Aug 06, 2022

Copy link to clipboard

Copied

LATEST

Works perfect, Thank you so much.

Can I pay you for writing some JaveScript for me?

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