Debugging Client Scripts — Mobile

  • ServiceNow Tools
    • g_form.addInforMessage()
    • g_form.addErrorMessage()
  • JavaScript Tools
    • Alert
    • Try / Catch

The JavaScript log and Field Watcher tools are Desktop only tools. To debug Mobile Client Scripts, use g_form methods and JavaScript alerts.

The g_form methods and alert arguments can be:

Strings

  • g_form properties or methods
  • g _ user properties or methods

Variables

• JavaScript string escape characters such as \n (new line) (ignored for g_form methods)

Remember to remove debugging messages when a script is ready for test and production!

results matching ""

    No results matching ""