Configuring Custom Translations for FSM Mobile and Templates

Configure translation references for custom text in Field Service Management (FSM), including FSM Mobile labels and email and report templates.

Before you configure custom translations, complete the following prerequisites:

For custom text in email and report templates, see Translating Custom Text in FSM Emails and Reports.

Use a separate translation collection and override the text on the existing resource. Retain its resource ID, element IDs, record mappings, resource-selection rules, and validation settings.

To configure translated custom FSM Mobile labels:

  1. Create a translation collection:

    1. Go to Customization > Translations > Manage Translations.

    2. On Collections, click Create New.

    3. Complete Name, ID, and Default Language. The default language cannot be changed after saving.

    4. Click Save.

    For more information, see Managing Translation Collections.

  2. On Collections, find the collection you want to update. In the Strings column, click +. Supply the source text, key, description, and available translations, then save. For more information, see Adding Strings to Translation Collections. For information about bulk translations, see Importing Translations into a Translation Collection.

  3. Record the collection's full script ID and each string key.

  4. Prepare an inactive copy of the current configuration before editing:

    1. Go to Field Service > Administration > Configuration.

      The Field Service Configuration page opens the active configuration record.

    2. Record the name of the active configuration so that you can identify it when activating the replacement.

    3. In Name, enter a unique name for the new version. Begin with the current product version, followed by the date in YYYYMMDD format and your initials. You can add a short description.

    4. Check the Inactive box to keep the replacement inactive during editing.

    5. From the Save list, click Save As.

    6. Click List. On the Field Service Configuration List page, check the Show Inactives box.

    7. Find the new record and click Edit.

  5. In the inactive configuration revision, replace the intended label text with collection_ID.KEY, using your collection's full script ID and string key. A reference is plain text in the JSON string. It doesn't need a ${ ... } template tag.

    In the following example, custcollection_fsm_custom is an illustrative customer-owned collection. Create it, or replace the ID with your collection's actual script ID. Add JOB_DETAILS and ACTIONS_TAKEN with source strings and the required translations.

    This JSON fragment changes the tab label and one field label on the existing details resource. Merge it into the existing configuration. For JSON terminology, see Configuration Hierarchy.

                      {
      "routes/mobile": {
        "details": {
          "label": "custcollection_fsm_custom.JOB_DETAILS",
          "element": {
            "actions": {
              "label": "custcollection_fsm_custom.ACTIONS_TAKEN"
            }
          }
        }
      }
    } 
    
                    

    Use this example only when details is selected for the relevant jobs. Standard configuration supplies its tab label through custcollection_fsm.app_detailstab_name and the actions label through custcollection_fsm.app_detailstab_actions_taken_name. The fragment retains the existing mapping of actions to custevent_nx_actions_taken, together with the resource's other inherited settings.

    For a resource generated from a NetSuite form, use the actual generated field ID in element. An explicit label overrides the generated label. Changing this FSM Mobile label doesn't rename the NetSuite field. For more information, see Form Properties and FSM Mobile Element Reference.

    Normally omit a locale suffix so the reference follows the language selected for the request. A reference such as custcollection_fsm_custom.ACTIONS_TAKEN.fr_FR selects that locale for the reference. Use a fixed locale only when that text is intentionally independent of the employee or customer selection. For information about expressions and template tags, see FSM Expressions and Template Tags.

    Important:

    A label override doesn't require creating a resource. Copying a standard resource under another ID is a separate customization. Don't assume that the copy retains the original resource's server synchronization or processing of related records.

    Standard default JSON for these two labels (language selection itself is an account or record setting):

                    {
      "routes/mobile": {
        "details": {
          "label": "custcollection_fsm.app_detailstab_name",
          "element": {
            "actions": {
              "label": "custcollection_fsm.app_detailstab_actions_taken_name"
            }
          }
        }
      }
    } 
    
                  
  6. Check the Editor content for valid JSON before saving.

    FSM checks whether the Editor content can be parsed as JSON. When Preview is enabled, the form displays an indicator that shows whether the JSON is valid or invalid. Saving rejects invalid JSON whether Preview is enabled or disabled. Repeated property names within one object pass the syntax check, but only the last value remains. With Preview enabled, the Editor can remove an earlier duplicate when you finish changing the field. Saving removes it in either mode. The check also doesn't comprehensively validate property paths, values, record references, searches, expressions, or the account setup needed for the intended behavior.

    Valid JSON and Configuration Preview don't establish that a property is supported or that downstream processing succeeds.

  7. From the Save As list, click Save.

  8. On the configuration list, clear the Inactive box for the replacement record and check the Inactive box for the previous active record.

  9. Click Submit. Reopen the configuration page to confirm the intended record is active.

Changed configuration applies to subsequent applicable requests and output generation. These changes don't regenerate previous emails, PDFs, or record names.

Synchronize outstanding work before refreshing or signing out of FSM Mobile. Refresh FSM Mobile for changed labels.

An unresolved translation key can remain visible. Don't assume that FSM uses English as a fallback if a translation collection fails to load.

Removing custom label or template overrides restores the inherited definitions. Existing emails, PDFs, and stored names remain unchanged.

Translating Custom Text in FSM Emails and Reports

Use the same collection references for custom text in the applicable HTML email or XML report template. For example, this template fragment inserts the available translation for one label:

            <p>custcollection_fsm_custom.ACTIONS_TAKEN</p> 

          

Preserve the existing template's data references and rendering structure. FSM resolves collection references before FreeMarker processes the template. Literal text without a reference remains literal.

For information about configuring template files and their data for emails and reports, see Customizing FSM Notification Emails and Language and Translations. The selected notification language is passed to the email and its template-generated report attachments. Attaching an existing file doesn't render or translate that file again.

Additional Information

Related Topics

General Notices