i enabled the attribute to enable Enable barcode scanner but it is not working

chercm
Mega Sage

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 

1 REPLY 1

Abbas_5
Tera Sage
Tera Sage

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 appTo 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. 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. 
       
  2. 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. 
       
  3. 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. 
       
  4. 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. 
       
  5. 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. 
       
  6. 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. 
       
  7. 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. 
       
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. 
     
     
    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