To use this feature, you define a script in Infoplus of a Script Type called "Warehouse Apps Input Customizer". Note: you can only have 1-such script in your site (technically, you can have more than one, but only the first one (sorted by id) will be used). An example is shown below.
The script gets ran in the Infoplus Warehouse Ops apps any time a value is entered into the application. The script can manipulate the value that the user typed or scanned before it is sent to the Infoplus backend (for example, to remove digits from a barcode). When the script runs, there are 3 variables available in the runtime context:
- input - the string that they user scanned or keyed in
- context - an object containing 2 keys: app and screen, to indicate where the user is currently running.
You can see debugging output from the script by opening Chrome Developer Tools, clicking on the Console tab, and observing lines prefixed by Input Customizer. You can use these lines to see what possible values the context.app & context.screen variables will take.
Note that when you make changes to the script (ie, edit its code), you have to reload your (beta) warehouse app to reload the script to have your new changes take effect.