This Article explains about adding a new username field and map Student ID to it.
Environment : This article best suits for CPPM 6.2 version.
Navigate to "Home » Configuration » Guest Self-Registration" and select the profile which we are using. Once we select it, click on "Edit" as shown below.
After going to Edit mode, click on "Form" As shown below.
Click on any available field ( I preferred Email_1) and change filed name to user name as shown in below screen shot.
Configure field name as StudentID and edit label and description as per your requirement.
Make sure the validator selected "IsNonNegative".
Save changes and enable this field.
Check the preview to verify that the changes made are correct.
NOTE: StudentID field must be an integer and can have a maximum of 9 digits. If this does not meets requirements then we can edit the email field as shown below.
Select the Field Name as UserName.
And edit the Max length to allow more than 9 characters with the validator option set as "IsValidUsername".