Hi there
I have an interface which has three barcode fields, what I am trying to do is that once I scanned the first field, the focus can be automatically move to the second "barcode" field, so I can continue scanning without need to click the second "barcode" field on the interface, so on with the third "barcode" field.
and also the similar thing with "Text" fields, once I type in the first "Text" field, then press "ENTER (new line character)", then the focus will move to the second "Text" field, so I can keep typing in without the need to click the field to move the focus.
Could you please help if you have the experience/knowledge about this?
Regards,
Lin
Discussion posts and replies are publicly visible
Appian forms support Tab operation; I'm not really sure what luck you'll have using that with a barcode reader (unless you can set it to submit a tab character following any successful scans), but it's trivially easy to do when hand-entering data into text fields via a keyboard at least.
Hi Mike,
Thanks for the information. so you mean it will probably working by configuring the scanner to add a tab character at the end of scan? but for text fields, can only press the tab key on the keyboard after finishing typing in all the data?
linp0001 said:so you mean it will probably working by configuring the scanner to add a tab character at the end of scan
It's worth a try at least.
linp0001 said:for text fields, can only press the tab key on the keyboard after finishing typing in all the data
This has been relatively standardized "text field" behavior since before Appian even existed. IE, pressing TAB goes to the next field, SHIFT+TAB goes to the previous field.
when did the similar thing on other Web development platform, I can use the javascript to do this by using the text field event "onkeypress", check if the "New Line" (Enter) character input, then move the focus to any other field with function "focus()". Appian can't integrate javacript functions?
linp0001 said:Appian can't integrate javacript functions?
The simplest answer is "no" - you will need to learn about and work within the capabilities of the SAIL interface framework. In a text field the behavior of the "Enter" character is to cause the value of the field to be set (it executes the "unfocus" behavior even if the field hasn't been unfocused); the only keystroke I know of that will jump to a new input field is the standard TAB.