Editing a field script

You can edit a field script to combine fields and text or specify conditional data.

  1. Access the Report configuration section of the Report details screen.
  2. Click the Field Script button before the field column in the Selected fields list.
  3. Write a JavaScript. Insert the variable data within the hard brackets. See this example:
    if(1 == 2)
    {
    return "Not possible";
    }
    else
    {
    return "[1LMTITNO]" + "–[1LWWUNMS]";
    }
  4. To test the script, click Validate. If the script is correct, a validation notification, which is highlighted in green, is displayed. The validation notification shows the real sample data, which replaces the variable data. If the script is invalid, the validation notification is highlighted in yellow.
  5. Click Save.