Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Why are client scripts not working in mobile agent?

Krishna Priya
Tera Contributor

I have a client script to hide a choice value for a list field depending on the Type field on change. The script works fine on desktop but won't work for mobile agent. I selected "All" for the UI type in the client script configuration and still no luck. I read that client scripts may not work for mobile agent, but I am not sure. If they do not work for agent. I can achieve this functionality? 

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Client scripts won't run in the newer agent and now mobile ios/android apps, but much of the time you can accomplish your overall requirement in a different way using actions and functions. It's a completely different paradigm than the desktop, so I would run through the Mobile training on the developer site to get familiar with the newer mobile concepts.

View solution in original post

9 REPLIES 9

Client scripts in mobile agent app work for me

snow34
Tera Contributor

It's not working for me , can you explain how it got worked for you ?

Nope, I was super wrong unfortunately @paul_singh@amat.  I ended up moving the functionality to a BR but I still find mobile development extremely limiting. @Victor Chen Will basic glide client scripting ever work for agent mobile?

@ctsmith you have mentioned, moving the functionality to a BR. Is it BR will work in Agent mobile application? I get to know UI Policy , Client script won't work in the Agent mobile application.

@Sai Easwer Tej BR does work in mobile agent like any other record update.  But, in a more recent version, I controlled the functionality in an action script to either update an asset (with info/error messages) or update multiple in one go.  I have more detail about it here. Let me know if you have any questions!