Skip to main content
Participant
February 15, 2024
Question

Duplicate fields but one read only

  • February 15, 2024
  • 1 reply
  • 609 views

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"

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
February 15, 2024

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;

Participant
February 15, 2024

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.

try67
Community Expert
Community Expert
February 15, 2024

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?