Skip to main content
Known Participant
August 6, 2022
Answered

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

  • August 6, 2022
  • 2 replies
  • 730 views

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 

This topic has been closed for replies.
Correct answer Nesa Nurani

As Validation script of "Date" field use this:

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

2 replies

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
August 6, 2022

As Validation script of "Date" field use this:

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

Known Participant
August 6, 2022

Works perfect, Thank you so much.

Can I pay you for writing some JaveScript for me?

Bernd Alheit
Community Expert
Community Expert
August 6, 2022

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

Known Participant
August 6, 2022

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.