Create User Task - How to Populate UserID field with value from another attribute field
All Identity Manager
Edit the Profile screen used by the Create User task you are executing and for the field which has the attribute value you want (i.e. Full Name) set the Validate On Change to Yes and in the Validation JavaScript enter the following:
function validate (FieldContext, attributeValue,changedValue,errorMessage)
{
FieldContext.setFieldValue("%USER_ID%", attributeValue);
return true;
}
Now when I am using the Create User task and enter a value in the Full Name field and move to any other field the User ID field will get the same value that is in the Full Name field because the validate javascript on the Full Name field will use the current value to set the %USER_ID% attribute field too.