Skip to main content
Participant
November 22, 2023
Answered

Linked form fields in a portfolio?

  • November 22, 2023
  • 1 reply
  • 593 views

How to link form fields throughout a portfolio? I want to be able to enter a name and ID number in different forms.

This topic has been closed for replies.
Correct answer Joel Geraci

This is true of any two (or more) documents whether in a Portfolio or not. All the forms would need to be opened and have their "disclosed" property set to true. Once all of the documents in question are disclosed, you can use JavaScript to get and set field values. For example to populate the name field in the current form from one that already had the name field filled out use...

this.getField("name").value = myOtherDoc.getField("name").value;

 

1 reply

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
November 22, 2023

This is true of any two (or more) documents whether in a Portfolio or not. All the forms would need to be opened and have their "disclosed" property set to true. Once all of the documents in question are disclosed, you can use JavaScript to get and set field values. For example to populate the name field in the current form from one that already had the name field filled out use...

this.getField("name").value = myOtherDoc.getField("name").value;