Community

Highlight Field On Entering

Here is a script I frequently plug in if a customer is using the FlexiCapture thick client Verification. This will highlight all the characters in a field as the operator clicks or "tabs" into that field. Additionally, this code will automatically expand the options if a field is a list of values. Put this C# code into Project Properties > Stage Tools > Verification > On Field Control Activate. (You may have to create a new event)

try
{​​​​​​
FieldControl.TextEditor.ShowSuggestsList(); //expand list
FieldControl.TextEditor.SetSelection(0, FieldControl.Field.Text.Length); //highlight text of field
}​​​​​​
catch
{​​​​​​​​​​​​​
}​​​​​​​​​​​​​

 

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.