Skip to main content
robertk36424937
Participating Frequently
February 9, 2021
Answered

Help with auto filling

  • February 9, 2021
  • 1 reply
  • 1505 views

I am trying to auto fill / copy the information from text box 4 and 5 into text boxes 9 and 10 when any text is added to text box 2. I have no idea what the script would be and how to add it. Can anyone help?  Thanks in advance. 

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

You want to fill text9 with text4 and text 10 with text5?

You can put this code in text2 field as validation script:

this.getField("Text9").value = event.value != "" ? this.getField("Text4").value : "";
this.getField("Text10").value = event.value != "" ? this.getField("Text5").value : "";

change field names if neccessary.

1 reply

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
February 9, 2021

You want to fill text9 with text4 and text 10 with text5?

You can put this code in text2 field as validation script:

this.getField("Text9").value = event.value != "" ? this.getField("Text4").value : "";
this.getField("Text10").value = event.value != "" ? this.getField("Text5").value : "";

change field names if neccessary.

robertk36424937
Participating Frequently
February 9, 2021
That worked great! Thank you for your help 😁