The $LoginName generates an input box for entering your iService login. This is used on forms where an agent login is required to submit the form, such as when creating a ticket. This can be used in connection with the $IF LoggedIn command to optionally present a login box when the user is not already logged into iService.
Available Parameters for $LoginName
Parameter Name: -id
Since the $loginname command generates an input box that accepts user input, it must include an ID to be in a valid HTML format. Use the -id parameter to specify an id for the HTML that is generated.
Example:
$loginname -id'loginname'$
Parameter Name: -customhtml
The $loginname command generates an input box into which the user will enter their iService login name. This box can be styled using custom HTML if the -customhtml parameter is used.
Example:
$loginname -id'loginname' -customhtml$
Login Name: <input type="text" name="loginname" size="45">
Within the custom HTML you must use the name tag (i.e., name="loginname") to map back to the ID of the $Loginname command. This example will generate a text box for entering the login name with a width of 45.
Learn more about the -CustomHTML parameter here.