Copy link to clipboard
Copied
Hello community,
I'm hoping someone might be able to help me with a script I'm trying to write. I have (3) fields of text information (First, M, Last) and when someone fills in each section on the form my goal is to populate those inputs into one field somewhere else on the form.
Field 2a = First
Field 3a = M
Field 4a = Last
I know that "event.value=this.getField("2a").value" will give me the value that is in Field 2a. I just don't know how to put them together into one field and so there is a space in between.
Any help or suggestions would be much appreciated!
Thank you in advance.
Copy link to clipboard
Copied
event.value=this.getField("2a").value + " "+ this.getField("3a").value+ " "+ this.getField("4a").value;
Copy link to clipboard
Copied
event.value=this.getField("2a").value + " "+ this.getField("3a").value+ " "+ this.getField("4a").value;
Copy link to clipboard
Copied
AWESOME!!! THANK YOU so much. Exactly what i needed.
Appreciate it.
Copy link to clipboard
Copied
Be aware that using that code if the second field is empty you'll get two spaces in the middle of the combined name...
Copy link to clipboard
Copied
Got it. I appreciate the headsup

