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

Duplicate fields but one read only

Community Beginner ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

I have a date picker named "editableDate" I want a second form field "readonly" to display what is in "editableDate" but i want to make "readonly" read only without locking "editableDate"

TOPICS
How to , PDF forms

Views

145

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 ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

They can't be duplicates, in that case. Name the second field "editableDate_Copy" and use the following code as its custom calculation script:

event.value = this.getField("editableDate").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 ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

I tried that, but it does not pull, I am guessing it has something to do with the date picker? I tried date picker to date picker, I tried date picker to text form field. I adjust the formatting to be identical no joy.

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 ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

It should work, regardless of the format. Where did you place the code? Did you check the JS Console for errors after changing the value of the first field, after applying the code?

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 ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

LATEST

OMG, there were compounding form fields overlapping after deleting the entire form and starting over with the calculation you provided first it worked. Thank you and sorry for the noob mistake! 

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