Mobile Scripting


Feature released in SummitAI Mobile Application (Mobile Application, Tahoe HF02)

What's New?

A new Mobile tab is introduced in the Scripting page that enables you to write or configure custom mobile JavaScript code to customize the fields that are applicable to the mobile application. In mobile applications it helps in configuring alerts messages, hiding contents, and marking the fields mandatory and non-mandatory.

In the mobile application, the customization scripting is available only in Log New Incident and Log New Service request pages. For more information, see Scripting.

Figure - Mobile tab

Business Benefits

  • Customize the fields as per your business requirement and handling tasks enhance productivity.
  • Quick modification of the fields for better customer experience.

Pre-requisites

User Persona: Admin


Configuration

Select the Enable Scripting check box under the SCRIPTING section of the ROLE TEMPLATE - OTHER CONFIGURATION pages (Admin > Basic > Users > Role Template > Select a Template from the LIST section > On the ACTIONS panel, click OTHER CONFIGURATION).

Mobile Tab - Scripting Layout

The Mobile tab layout consists of the following sections:

Figure – Scripting New Incident

  1. Mobile Text Area
  2. Mobile Parameters

Mobile Text Area

The mobile text area is a simple text placeholder where an administrator can write a custom script for the mobile application based on the requirement.

Figure - Mobile tab

Example

To mark Priority as a mandatory field OnSubmit. An admin should paste the script into the mobile text area as displayed in Figure – Mobile Text Area. Replace the #groupID and #controlID controls with the values appearing in Group ID and Control ID fields on selecting Priority option in Control Name field of Mobile Parameter section.

Mobile Parameters

The Mobile Parameter enables to view of the control associated with the selected elements. Using these controls an admin can configure the script for the mobile application.

Figure - Mobile Parameters

Field Description

Field

Description

Control Name

Select the control name from the list. The value associated with the selected Tenant details appears in this field.

Group Name

Display the group name associated with the selected Tenant details appear.

Group ID

Display the group identification number associated with the selected Tenant details appear.

Control ID

Display the control identification number associated with the selected Tenant details appear.

Description

Display the description details associated with the selected Tenant details appear.

Active

If this check box is selected, the current mobile parameter becomes active for the selected Tenant and is applied to the page.

Common Functions in Scripting

The buttons that are available in the Scripting screen are explained in the following table:

Icon Or Button

Description

Quick Help

In the Quick Help, the Mobile tab is enhanced that displays information related to the actions that can be performed on the SCRIPTING page.

For example, if you want to perform the following action: How to invoke Web Service? OR API calling? The CODE SNIPPET is provided in the QUICK HELP pop-up

Submit

The SUBMIT button enable you to submit the request.

Cancel

The CANCEL button enable you to cancel the request.