Client script includes installed with Service Management Core

Service Management Core adds the following client script includes.
Client script includes Table Description
Hide blacklisted fields SM Config

[sm_config]

Hide sm_config fields based on blacklist.
Start work read-only (exp. travel chg) Service order task

[sm_task]

Start work read-only when travel is required and not started.
Start work read-only when travel is required and not started Service order task

[sm_task]

Displays an error after a location change if no dispatch group or assignment group covers the location of the work order task.
Show or hide/clear contract field Service Management Incidentals

[sm_incidentals]

If type is Vendor cost, then show the contract field. Otherwise, clear and hide the contract field.
check order of start date and end date Service order task

[sm_task]

Verify that the start date happens before the end date.
Update Assigned to (Assign Group change) Service order

[sm_order]

Update Assigned to when Assignment group changes: - clear the Assigned to field.
Ci update Service order

[sm_order]

Updates the associated asset and location based on changes to the affected CI.
Populate CI Location Service order

[sm_order]

Populates work order location based on CI location.
check_work_duration Service order task

[sm_task]

Verify that the work duration is not 0 or empty.
Calculate total amount - quantity Service Management Incidentals

[sm_incidentals]

Calculates the total mileage costs when the quantity changes.
Validate Estimated Travel Duration Service order task

[sm_task]

Make sure the estimated travel duration does not carry into the expected start time.
Validate Scheduled Travel Start Service order task

[sm_task]

Make sure scheduled travel start (with its duration) is before scheduled work start.
Template selected Service order

[sm_order]

Populates form based on template values.
Populate Caller Location Service order

[sm_order]

Sets the location field when the caller is changed.
Check for group errors Service order

[sm_order]

Displays an error on load if no qualification group covers the location of the work order.
Hide unused related lists/fields Service order

[sm_order]

Hides related lists that are not relevant based on application configuration
Ci update Service order task

[sm_task]

Updates the associated asset and location based on changes to the affected CI.
New fields type control SM Template Definition

[sm_template_definition]

Displays the appropriate field type based on selection of field on template definition page.
Asset update Service order [sm_order]

[sm_order]

Updates the associated configuration item and location based on changes to the affected asset.
Field onload helper SM Template Definition

[sm_template_definition]

Displays the appropriate field type based on selection of field on template definition page (onload).
Read only task templates depedencies Service Order Task Template Dependency

[sm_m2m_task_template_dependency]

Makes the dependent field read only when creating task template dependencies in sm_m2m_task_template_dependencies table.
Make Location not mandatory Stockroom

[alm_stockroom]

Makes Location not mandatory for stockroom type field_agent
Calculate End Time (Duration change) Service order task

[sm_task]

Calculates Estimated End Time in a Work Order Task based on a change of estimated work duration.
Show error when no application installed Service Order Model

[cmdb_serviceorder_product_model]

Show error when no application installed.
Calculate total amount - cost per mile Service Management Incidentals

[sm_incidentals]

Calculates the total mileage costs when the quantity changes.
Priority assignment SM Config

[sm_config]

Set scheduling to true and hide consistent assignment of priority assignment is turned on.
Asset update Service order task

[sm_task]

Updates the associated configuration item and location based on changes to the affected asset.
Read only group dependencies Service Order Group Dependency

[sm_m2m_group_dependency]

Once set, fields are read-only.
Add sourcing UI Listeners Service order task

[sm_task]

Sets up event listeners for changes to travel duration, work duration, or expected work start so that they will be automatically updated in the sourcing UI (if the task is opened via the sourcing UI).
check window_start Service order task

[sm_task]

Verify that window start is before window end.
Set required quantity read-only Part Requirement

[sm_part_requirement]

Sets the Required quantity field to read-only when the required number of assets are sourced for the part requirement
Show messages Service order task

[sm_task]

Shows messages if the expected due date for the task is after the request's requested due date or if auto-assignment does not work.
Calculate total amount - type Service Management Incidentals

[sm_incidentals]

Calculates the total mileage costs when the type changes.
Update Assigned to (Assign Group change) Service order task

[sm_task]

Update Assigned to when Assignment group changes: - clear the Assigned to field.
Hide group field Service Task Model

[cmdb_servicetask_product_model]

Hides the dispatch group field if dispatch queue is off
Hide state flow field SM Config

[sm_config]

When state flow is turned off, hide the field from the form.
Check TOs before reassigning Service order task

[sm_task]

When reassigning or unassigning a work order task, prompt user to cancel all transfer orders to personal stock rooms for a task if the task only has cancelable transfer orders.
Verify Group Post Dispatch Group Change Service order task

[sm_task]

Displays an error on load if no assignment group covers the location of the work order task.
Set Tables SM Notification Rule

[sm_notification_rule]

Limit the tables to the two possible tables, if none are chosen, set the first one as the default.
Calculate End Time (Start time change) Service order task

[sm_task]

Calculate the Estimated End Time based on Expected Start Time changing. Also checks for inconsistencies that may have been created with estimated travel start.
Update Model and Quantity based on Asset Asset Usage

[sm_asset_usage]

Synchronizes model and quantity information of an asset usage record based on the asset it references.
Read Only Order Affected Cis Affected CI

[sm_m2m_order_affected_ci]

Makes a field read only once a value is selected for that field.
Reset quantity Service Management Incidentals

[sm_incidentals]

When the type changes back to car rental, the Qty will be set back to 1.
Read Only Task Affected CIs Task Affected CI

[sm_m2m_task_affected_ci]

Makes a field read only once a value is selected for that field.
Hide group field Service Order Model

[cmdb_serviceorder_product_model]

Hide the assignment group field if application is not request driven, hide the qualification group field if qualification is off.
Check TOs before reassigning Service order task

[sm_task]

When reassigning or unassigning a work order task, prompt user to cancel all transfer orders to personal stock rooms for a task if the task only has cancelable transfer orders.
Notify parent on submit Part Requirement

[sm_part_requirement]

Updates the Source tree whenever a new part requirement is created inside the Source popup window.
Show warning msg of templates upgrade SM Config

[sm_config]

Show warning message when the templates need to be migrated.
Verify Group Fields Service order task

[sm_task]

Displays an error on load if no dispatch group or assignment group covers the location of the work order task.
Ensure no negative and decimal quantity Part Requirement

[sm_part_requirement]

Ensures the quantity required for a part is valid.
Read only task depedencies Service Order Task Dependency

[sm_m2m_task_dependency]

Making the dependent field read only on creating task dependencies in sm_m2m_task_order table.
Start work read-only (actual travel chg) Service order task

[sm_task]

Start work read-only when travel is required and not started. 'Schedule travel start' and 'Schedule start' are mandatory when 'Agent Track Time' is on.
Show warning message of disable SF SM Config

[sm_config]

Shows a warning message when state flows are disabled.
Populate from stockroom for drop off Transfer Order

[alm_transfer_order]

Sets the from stock room to the logged in user's personal stockroom when creating a drop off transfer order.
Set value before submit SM Template Definition

[sm_template_definition]

Sets the value from the various widgets to the appropriate value before submitting the template definition form.
Template selected Service order task

[sm_task]

Populates form based on template values.
Personal Stockroom Name by Type Stockroom

[alm_stockroom]

Sets the name of a stockroom based on its manager when it becomes a personal stockroom.
Update agent status Service order task

[sm_task]

Update the assigned agent's status
Update UI on load and model change Asset Usage

[sm_asset_usage]

Update UI on load and model change
Personal Stockroom Name by Manager Stockroom

[alm_stockroom]

Updates the name of a personal stockroom when its manager changes.
Hide unused related lists/fields Service order task

[sm_task]

Hides related lists that are not relevant based on application configuration.
use schedule SM Config

[sm_config]

Turn off priority assignment and show consistent assignment if scheduling is turned off.
Verify Group Post Location Change Service order [sm_order]

[alm_stockroom]

Displays an error after a location change if no qualification group covers the location of the work order.