All,
I have a form that I am using when we need to create an identity in SailPoint. The first 2 attributes to fill out on the form are “First Name” and “Last Name”. But, too often the requestor never Capitalizes the first letter in those 2 attributes. If there a rule or some sort of edit change that I can do so when a requestor inputs the name, he has to use a capital letter at the beginning for the first and last name inputs.
I have attached an example of the form we use in our UAT environment. Where exactly do i put this validation script for first name and then last name? UAT-Create_VDOT_User.xml (10.4 KB)
<Section label="Enter User Details" name="userDetails">
<Field displayName="First Name" helpKey="First name of the user - NO SPACES" name="firstname" postBack="true" required="true" type="string">
<ValidationScript>
<Source>
import sailpoint.tools.Util;
if (Util.isNotNullOrEmpty(value)) {
if (!Character.isUpperCase(value.codePointAt(0))) {
return "First Name must start with upper case letter";
}
}
return null;
</Source>
</ValidationScript>
</Field>
<Field displayName="Middle Name" name="middleName" type="string"/>
<Field displayName="Last Name" helpKey="Last name of the user - NO SPACES" name="lastname" postBack="true" required="true" type="string">
<ValidationScript>
<Source>
import sailpoint.tools.Util;
if (Util.isNotNullOrEmpty(value)) {
if (!Character.isUpperCase(value.codePointAt(0))) {
return "Last Name must start with upper case letter";
}
}
return null;
</Source>
</ValidationScript>
</Field>