Scoped GlideSystem - isMobile()

You can determine if a request comes from a mobile device.

This method can be used in UI action conditions and business rules.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Boolean True if the request comes from a mobile device; otherwise, false.
if (gs.isMobile())
  gs.info("submitted from mobile UI");
 else 
   gs.info("NOT submitted from mobile UI");