- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2025 11:20 PM - edited 11-06-2025 11:27 PM
Autopopulate Fields in Mobile Input Form
Key points covered:
- How to use Mobile Callable Script Includes
- Autopopulating fields in Mobile Input Form
Use Case:
Populate default Assignment Group in of the Field in Mobile Input form.
Steps to Implement:
1. Create a Script Include and Mark it as Mobile Callable.
var MobileUtils = Class.create();
MobileUtils.prototype = {
initialize: function() {},
populateDefaultAssignmentGroup: function() {
var assignmentGroup = gs.getProperty('service.desk.group'); //Storing sys_id of deafult group in system property
return {
"Value": assignmentGroup.toString(),
"DisplayValue": "IT Service Desk"
};
},
type: 'MobileUtils'
};
2. Create Assignment Group Variable and set variable type to Scripted
4. Create Assignment Group Input field, in that under Autofill variable select the above Assignment group variable
For a detailed approach, visit my blog post,
https://rohanaditya-servicenow.vercel.app/MobileInputForm.html
And my blog site,
https://rohanaditya-servicenow.vercel.app/
Solved! Go to Solution.
- 285 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Please mark this as helpful if it resolves your issue.