The CreatorCon Call for Content is officially open! Get started here.

How to determine if the Service-Now Mobile App is being used

Ashley
Kilo Sage

Good Morning,

We have started to move our Service Catalog to the Mobile Platform (just in time for Christmas)

We have an online "Report a Problem" form which is our first victim but what I am trying to figure out is how to determine (if possible) whether it is being accessed via the Service-Now Mobile App or via an Internet Browser, the reason I ask is because we want to only show certain fields depending on which platform is being used?

The only other option I can think of is to create a separate form and have one enabled for each but maintaining two separate forms for the same purpose I think is bad practice.

Any ideas would be most welcome,

Ashley

2 REPLIES 2

Chuck Tomasi
Tera Patron

Hi Ashley,



This   may help. There is a Server side call you can use to determine the device type:



GlideMobileExtensions.getDeviceType()



returns 'mobile or doctype (desktop)


If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thank you