MSM7xx Controllers Configuration Guide v6.4.0
• password: Password to use for authentication. Applies to access_type = login.
• subscription_url: The URL to which the user is sent when access_type = subscribe.
• success_url: The URL to which the user is sent if the login is successful. Applies to
access_type = login or free_access.
• username: Username to use for authentication. Applies to access_type = login.
• valid_fields: Name of the form fields to do validation upon.
HtmlLogout
This form performs a logout operation.
Field
• success_url: The URL to which the user is sent if the logout is successful.
Form errors
When the Web server validates a form, it builds a list of all fields that have validation errors. The
following functions can be used to scan this list and retrieve error information for each field.
GetLastFormSubmitFirstField()
Returns the name of the first field (as a string) that generated a validation error. If no error
occurred for any fields in the form, an empty string is returned.
Example
var firstField = GetLastFormSubmitFirstField();
GetLastFormSubmitNextField(field_name)
Returns the name of the next field after the specified field_name that generated an error.
This enables you to move through the field error list one field at a time.
The field name is returned as a string. If no error occurred for any other fields in the form, an
empty string is returned.
Example
var nextField = GetLastFormSubmitNextField("previousField");
LoadFormFieldError(field_name)
This function the following ASP variables with details about the errors caused by the specified
field_name.
ASP variables
• field_error: Numeric error value.
0 - No error found.
1 - The field required a value but was empty.
2 - The field contained a value which exceeds the maximum supported length.
3 - The field contained a value which is invalid (only specific values were allowed).
• field_error_details: Additional information about the error. Will contain an
empty string if not applicable. When field_error is set to 2,
field_error_details will be equal to the maximum supported field length.
Example
LoadFormFieldError("field");
write(field_error);
write(field_error_details);
Public access interface ASP functions and variables 493










