I have written an override for the core Joomla User Registration and put it into:
/templates/protostar/html/com_users/registration/forms/registration.xml
For external API reasons I have had to split the Name into two fields - First Name and Last Name. I have edited the 'Name' field to show as 'First Name' and created a new field for 'Last Name' field as follows:
<field
name="name"
type="text"
description="Please enter your first name"
filter="string"
label="First Name"
required="true"
size="30"
/>
<field
name="LastName"
type="text"
description="Please enter your last name"
filter="string"
label="Last Name"
required="true"
size="30"
/>
This works great in the front end, however when the user is created it is only showing the First Name in the Name field, how can I get the Last Name to be pushed through to the Name data field aswell?