Set focus and select entire field contents
-
- Profound User
- Posts: 40
- Joined: Mon Apr 26, 2010 11:53 am
- First Name: RICHARD
- Last Name: RUTA
- Company Name: WILLAM B. MEYER
- Phone: 203.984.7175
- Address 1: 255 LONG BEACH BLVD
- City: STRATFORD
- State / Province: Connecticut
- Zip / Postal Code: 06615
- Country: United States
- Contact:
Set focus and select entire field contents
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.
-
- Profound User
- Posts: 82
- Joined: Fri Jun 29, 2012 2:33 pm
- First Name: Antonio
- Last Name: Ruballos
- Company Name: Profound Logic
- Contact:
Re: Set focus and select entire field contents
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.
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.
Who is online
Users browsing this forum: No registered users and 2 guests