Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Character Count

Featured Replies

  • Newbies

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?

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

  • Author
  • Newbies

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?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.