Client Script Mobile Methods

Mobile GlideForm (g_form) methods enable you to work with forms on the mobile platform

• Use these methods in any client side script that targets a mobile device

  • addDecoration()
  • getLabel()
  • hasField()
  • removeDecoration()
  • setLabel()

Description

  • g_form.addDecoration() — add a decoration next to a field.
  • g_form.getLabel() — gets a field's label text.
  • g_form.hasFieId() — returns true if a field exists on a form.
  • g_form.removeDecoration() — removes a decoration from a field.
  • g_form.setLabel() — sets a field's label text.

Important

Using mobile only g_form methods on the Desktop causes runtime errors. Check the ServiceNow Developer site for the most current information on mobile g__form methods.

results matching ""

    No results matching ""