Hide keyboard popup on mobile

Hi,

I am trying to hide or disable android keyboard popup for an input field (field type data, with Barcode option).

I create on refresh client script to add inputmode to the css class

input = document.querySelectorAll(‘[data-fieldname=“scan_barcode”]’);
for (var i = 0; i<input.length; i++) {
input[i].setAttribute(“inputmode”, “none”);
}

It worked in adding the css attribute

But the web browser on android is still popping up the soft keyboard

Where did I do wrong here?

Tried on another phone and it works…