Applying templates on mobile app

Maria DeLaCruz
Tera Guru

Hello,

Need some help with templates.   I've created a client script to apply a template every time a new incident alert record is created.   It works great on desktop, but not on mobile.   Is there any way to get this to work on the mobile app?  

Thanks,

Maria

5 REPLIES 5

Chuck Tomasi
Tera Patron

Hi Maria,



Did you check the UI Type field to ensure that it says Both?



find_real_file.png



Can you share the client script here so the community can take a look?


Hi Chuck,



Yes, the UI Type has 'Both' selected.  



Here's the client script:


find_real_file.png


CapaJC
ServiceNow Employee
ServiceNow Employee

applyTemplate is not currently supported in the Mobile/Service Portal client scripting environment. There is now an open PRB for this in /hi: PRB1086692


Is it possible to add the template as part of the path url to the form on the mobile module. I did try this but it didn't work.


/incident.do?sysparm_view=resnet_full?sysparm_template=School Opening    


Is there another way to code it perhaps?