[SOLVED] Script to fill in Technician automatically in request form

[SOLVED] Script to fill in Technician automatically in request form

I am busy making a template for technicians with the purpose of registering 'first line fix' calls that do not need detailed information to be saved. So in the request template almost all fields are pre-filled-in. Technician only has a minimum of info to enter.

Now I need a custom script to be used at the template Rules tab that will fill in the name of current logged in technician. The script should do the following simple actions:
- Fetch the full name of the technician
- Fill in this name at the 'technician' field.

I got as far as this:
var y = $CS.getLoggedInUserLoginName();
$CS.setText("TECHNICIAN", y ); 
$CS.stopFormSubmission(); 

But that only fetches the Login name, and not the full name, which is needed for filling in the Technician field.
Can you please help me with the correct code / function?

Regards,
Olivier

                  New to ADSelfService Plus?