Client scripts installed with assessments

Client scripts

Assessments adds the following client scripts.

Table 1. Client scripts for assessments
Name Table Description
Calculate Assessable Record Field choice list Trigger Condition

[asmt_condition]

Limits the Assessable Record Field choices to those that are compatible with the selected assessment.
Check survey schedule period Trigger Condition

[asmt_condition]

Checks the selected survey definition's Schedule period. If Schedule period is set to Only Once, this client script displays a warning message that each user can only take the selected survey once.
Clear display_when when depends changed Assessment Metric

[asmt_metric]

Shows the Display when field when the Depends on field is set. Clears the Display when field when the Depends on field changes and the options need to change.
Conditionally Set Type for Surveys Group

[sys_user_group]

Sets the user group Type to survey if you create a new group from the User Groups module.
Data type -- Hide choices for surveys Assessment Metric

[asmt_metric]

Ensures only Data type options that are valid for surveys are available on the Survey Question form.
Data type -- Show/Hide Not Applicable Assessment Metric

[asmt_metric]

Hides the Allow not applicable field and sets its value to false if the metric method is Assessment and the data type is Percentage, Checkbox, Date, Date/Time, Number, or String.
Datatype defaults to String for surveys Assessment Metric

[asmt_metric]

Sets the default Data type field value to String on the Survey Question form.
Fetch Min/Max Assessment Metric

[asmt_metric]

Updates the Min and Max fields to match the least and greatest metric template definition values if an assessment administrator selects or changes the Template value.
Hide Assessable Record Field Trigger Condition

[asmt_condition]

Hides the Assessable Record field unless the evaluation method of the metric type selected in the Assessment field is Assessment.
Hide assessment if empty Survey

[survey_master]

Hides the Assessment field on the Survey form unless it contains a value. The system populates the Assessment field when you migrate a survey.
Hide Survey Instance Trigger ID if Empty Assessment Instance

[asmt_assessment_instance]

Hides the Trigger ID field and makes it read-only unless it contains a value.
Hide user lists Assessable Record

[asmt_assessable_record]

Hides the Category users related list if the associated metric type schedule type is On demand.
Hide user related lists Metric Category

[asmt_metric_category]

Hides the User related list if the associated metric type schedule type is On demand and the Evaluation method is not Survey.
Hide value or String value Assessment Instance Question

[asmt_assessment_instance_question]

Hides the Value field and shows the String value field if the associated metric data type is Date, Date/Time, or String. Does the opposite if the data type is anything else.
Live feed deletion warning Assessable Record

[asmt_assessable_record]

Displays a warning message if an assessment administrator clears the Live feed check box.
Method -- Show/Hide Not Applicable Assessment Metric

[asmt_metric]

Hides the Mandatory and Allow not applicable fields and sets both values to false if the metric method is Script. Shows the Mandatory field if the metric method is Assessment. Shows the Allow not applicable field if the method is Assessment except when the data type is Percentage, Checkbox, Date, Date/Time, Number, or String.
Min/Max Control Assessment Metric

[asmt_metric]

Makes the Min and Max fields mandatory except when the data type is Template.
Min/Max Read-only Assessment Metric

[asmt_metric]

Makes the Min and Max fields read-only when the data type is Choice or Likert Scale.
Populate Groups Assessment Metric Type

[asmt_metric_type]

Populates the available values for the Filter field with fields from the selected metric type table.
Read only Type Metric Category

[asmt_metric_category]

Makes the Type field read-only when it contains a value.
Reload Decision Matrix Filter Columns Assessment Metric Type

[asmt_metric_type]

Populates the available choices for the Default matrix filter as appropriate if the Filter field value changes.
Reload default filters Assessment Metric Type

[asmt_metric_type]

Populates the available choices for the Default filter as appropriate if the Display all filters value changes.
Set scale factor Assessment Metric Type

[asmt_metric_type]

Reserved for future use.
Set table field Metric Category

[asmt_metric_category]

Sets the category Table value to that of the metric type.
Show and Hide Scheduled Job Assessment Metric Type

[asmt_metric_type]

Hides the Scheduled job field if the Schedule type is On demand and shows the Scheduled job field if the Schedule type is Scheduled.
Show and Hide Scheduled Job Survey View Assessment Metric Type

[asmt_metric_type]

Shows the Scheduled job field on the Survey Definition form if the Schedule period is Daily, Weekly, Monthly, or Yearly.
Toggle Metric Definitions (Load) Assessment Metric

[asmt_metric]

Displays the Assessment Metric Definitions related list if the data type is Choice or Likert Scale.
Toggle Metric Definitions (Update) Assessment Metric

[asmt_metric]

Displays the Assessment Metric Definitions related list if the data type is Choice or Likert Scale. Sets the Method field to the appropriate value if the data type is compatible with one method only.
Update Min And Max Default Values Assessment Metric

[asmt_metric]

Sets reasonable default values for the Min and Max fields, based on the data type.
Validate Probability Survey Trigger Condition

[asmt_condition]

Ensures that the Probability (%) value is a whole number between 1 and 100.
Verify Max Assessment Metric

[asmt_metric]

Verifies that the Max value is greater than the Min value and greater than or equal to zero if the metric method is Assessment.
Verify Min Assessment Metric

[asmt_metric]

Verifies that the Min value is less than the Max value and greater than or equal to zero if the metric method is Assessment.
Verify Value Assessment Metric Definition

[asmt_metric_definition]

Verifies that the Value is greater than or equal to zero.
Verify Value Assessment Template Definition

[asmt_template_definition]

Verifies that the Value is greater than or equal to zero.