Page 1 of 1
Set focus and select entire field contents
Posted: Tue Jul 10, 2012 10:14 pm
by RICHARD RUTA
Is there a way to set focus and select the entire contents of a field when the field is changed? This is a barcoding application where I'd like to keep receiving and replacing the contents of a field without requiring the user to place the cursor or select all contents of a field.
Re: Set focus and select entire field contents
Posted: Mon Jul 16, 2012 7:05 pm
by Antonio
Assuming that your application automatically submits the barcode upon scanning, you would need to put the following into "onload" in your screen properties
getObj("TextBox1").select()
where TextBox1 is textbox (or other widget) containing the field you wish to be focused.
Let me know if this solves your issue.
Thanks.