Skip to main content
Known Participant
September 23, 2019
Answered

Duplicate across but read only on second copy

  • September 23, 2019
  • 3 replies
  • 967 views

Hello, 

Is it possible to have a duplicate text cell is a read only on the second page?

The first page they would enter such items as their address etc. The second page would duplicate these fields but would not be editable.

 

Thanks for any help

    This topic has been closed for replies.
    Correct answer JR Boulay

    Hi

     

    You must use 2 fields with different names.

    Let's say you want the "FIELD2" to be read only and the user to fill the "FIELD1", so place this as a calculation script in the FIELD2:

     

    event.target.value = this.getField("FIELD1").value;

    3 replies

    JR Boulay
    Community Expert
    Community Expert
    September 24, 2019

    It's not a Simplified notation calculation, it's a JavaScript calculation

    😉

    Acrobate du PDF, InDesigner et Photoshopographe
    Known Participant
    September 24, 2019
    Perfect, thank you JR_Boulay!
    JR Boulay
    Community Expert
    JR BoulayCommunity ExpertCorrect answer
    Community Expert
    September 24, 2019

    Hi

     

    You must use 2 fields with different names.

    Let's say you want the "FIELD2" to be read only and the user to fill the "FIELD1", so place this as a calculation script in the FIELD2:

     

    event.target.value = this.getField("FIELD1").value;

    Acrobate du PDF, InDesigner et Photoshopographe
    Known Participant
    September 24, 2019

    Hello JR_Boulay, thank you for the reply.

     

    I entered:

    event.target.value = this.getField("Address1").value;

    into the Simplified field notaiton and nothing seems to be transferring.

     

    I tried it without "" as I wasn't sure, but that didn't work either.

    event.target.value = this.getField(Address1).value;

     

    Just trying to see if I did something wrong. Thank you for your help.

    jane-e
    Community Expert
    Community Expert
    September 23, 2019

    Hi

     

    When you give the same name to more than one field, then typing the information into any of the fields changes all of the ones with the same name. Did you try making the duplicates read only? I’’m not in my office and can’t test that part.

     

    Jane

    Known Participant
    September 24, 2019
    Yes, but when I make it read only, the original becomes read only also. Trying to see if there is another way around this. Thanks