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

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.

Hi @Brad Tilton 

 

In the above message, The "Mobile training" link is landing on 404 Error page.

Can you please provide the new training link it would be helpful for me.

 

Thanks

Victor Chen
ServiceNow Employee
ServiceNow Employee

Currently in mobile you can use UI policies to make fields visible/mandatory based on a condition builder. Client script support is something we are considering for the future. 

Victor,

 

Has there been any updates/progress in supporting client scripts on mobile?