Newbies LXR Posted March 23, 2010 Newbies Posted March 23, 2010 I am looking for a way to create a field ( that displays the Character Count of another field (A). I want B to display the character count of A as you type in A. Any ideas?
jamesducker Posted March 23, 2010 Posted March 23, 2010 To get field B to update totally on-the-fly, without the user committing the record (i.e. clicking out of field A), you'd be looking at a script trigger, attached to field A and called whenever there's a keystroke. The script would simply be: set field [field B] = length(field A) where fields A and B are both ordinary text fields. Using a script trigger on keystrokes is quite resource-hungry though and I would recommend you steer clear of the whole idea unless you absolutely have to use it. If you don't mind waiting for the user to commit the record then just define field B as a calculation field = length(field A). This approach is much kinder to the user's machine and will give better performance although obviously not the totally dynamic response that you may want. Hope that helps. James
Newbies LXR Posted March 23, 2010 Author Newbies Posted March 23, 2010 Thank you very much for your help! One more question - How do you attach a script trigger to field A, called whenever there's a keystroke?
Recommended Posts
This topic is 5417 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now