Skip to main content
Participant
October 6, 2023
Question

Preparing form field that default fills text from another field but is able to be manually changed

  • October 6, 2023
  • 1 reply
  • 443 views

Hi, 
I want to prepare a form where a field defaults to the Text of another field but is able to be changed without also changing the text in the reference field. 

e.g. The answer to question 1. "Family contact" name is most likely to be the answer to question 20. "Applicant Name" but in some instances they are different. I would like field 20 to prefill with the text in field 1 but would like the person completing the form to be able to alter the text in field 20 when needed, without it also altering the text field 1. 

Is this possible? Any assistance is greatly appreciated. Thank you 


This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
Community Expert
October 6, 2023

As 'Validation' script of 'field 1' use this:

this.getField("field 20").value = event.value;

Just change field 20 to your actual name for that field if it's not 'field 20'.