I have the following form. Currently, as the First Name and Last Name fields are entered, the text is concatenated together to populate the Display Name field.
To do this I'm using: (where DataCardValue2 = First Name & DataCardValue3 = Last name) on the Default value of the Display Name text field.
Concatenate(DataCardValue2.Text," ",DataCardValue3.Text)
Now, I need to substitute/replace the Display Name's First Name with the name entered into the Nick Name field (if it isn't blank).
I was trying to use this on the Nick Name (DataCardValue4) OnChange property but it doesn't work.
Substitute(DataCardValue1.Text,DataCardValue2.Text,DataCardValue4.Text,1)
In this example I would want the Display Name to say "Johnny Doe" now instead of "John Doe". If Nick Name exists it only needs to update the first name of the Display Name text. Does this make sense?

Thank you for some help.
-Greg