I have 2 text fields on a form, field1 and field 2.

In field1, users enter their full name.

So for example if someone enters Joe Bloggs in field 1, I want it to display this name as an email address in field 2 in the following format:


Is this possible?

I am binding the 2 text fields by using the following code:-

<input name="input1" onkeyup="input2.value=input1.value">
<input name="input2" onkeyup="input1.value=input2.value" +'@myexample.co.uk'>