i enabled the attribute to enable Enable barcode scanner but it is not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2025 03:54 PM
i enabled the attribute to enable Enable barcode scanner but it is not working and set it as a string but nothing happens when i used it on the iphone
Labels:
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2025 09:08 PM
Hello @chercm,
It seems like the "Enable barcode scanner" attribute is not working as expected in ServiceNow, even after enabling it. This could be due to several reasons, including incorrect configuration, compatibility issues, or misconfiguration of the mobile app. To troubleshoot, verify the attribute is correctly set on the desired field, ensure your asset module is enabled for mobile, and check your mobile app configuration.
Troubleshooting Steps:
-
1. Verify Attribute Setting:
- Ensure the "Enable barcode scanner" attribute is set to
true
on the specific field within the ServiceNow table where you want to use barcode scanning. - This attribute needs to be defined in the dictionary entry of the field (e.g.,
task.short_description
). - Check if the attribute is correctly displayed on the mobile form.
- Ensure the "Enable barcode scanner" attribute is set to
-
2. Mobile App Configuration:
- Confirm that the module (e.g., asset module) is enabled for mobile access.
- Ensure the mobile applet or form is configured correctly for barcode scanning.
- Check for any UI or applet settings that might be overriding the barcode functionality.
- Confirm that the module (e.g., asset module) is enabled for mobile access.
-
3. Field Type and Data Validation:
- The field on which you want to use barcode scanning needs to be a string field.
- You can also use regular expressions to validate the format of the barcode scanned value.
- The field on which you want to use barcode scanning needs to be a string field.
-
4. Barcode Scanning for Mobile Agent/Now:
- The "Enable barcode scanner" attribute might not be applicable for the ServiceNow Agent/Now app, which uses applet configurations.
- In this case, you might need to configure the applet or form in ServiceNow Studio to enable barcode scanning.
- The "Enable barcode scanner" attribute might not be applicable for the ServiceNow Agent/Now app, which uses applet configurations.
-
5. External Barcode Scanner:
- If you're using an external barcode scanner, you may need to configure it to send the scanned data correctly to ServiceNow.
- Some scanners require configuration to send a carriage return (CR) at the end of each scan.
- If you're using an external barcode scanner, you may need to configure it to send the scanned data correctly to ServiceNow.
-
6. Mobile View Configuration:
- Create a new mobile view specifically for the barcode field.
- This can help isolate the issue and ensure the barcode functionality is correctly set up for that specific view.
- Create a new mobile view specifically for the barcode field.
-
7. Testing and Debugging:
- Test the barcode scanning functionality on a test instance or in a development environment.
- Debug any issues using the ServiceNow logs or developer tools.
- Test the barcode scanning functionality on a test instance or in a development environment.
Additional Tips:
-
Check for Conflicting Configurations:Ensure there aren't any conflicting UI policies or other configurations that might be disabling the barcode scanner.
-
Clear Cache and Restart:Sometimes, clearing the mobile app cache or restarting the device can resolve temporary issues.OR Please refer to the link below:
https://www.servicenow.com/docs/bundle/yokohama-mobile/page/administer/tablet-mobile-ui/concept/sg-m...If it is helpful, please hit the thumbs up icon and accept the correct solution by referring to this solution in future it will helpful to them.Thanks & Regards,Abbas Shaik