Jump 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.

How to limit number of characters

Featured Replies

  • Newbies

I am successfully using the web companion to publish a database on the web (using a custom HTML page).

However, I would like to limit the number of characters that display in a one of the FMP text fields on that web page.

How can I do this? Is it something that I do in the HTML or can I set it up in the database itself?

An example:

Operation: <INPUT TYPE="text" Name="Operation" Size=20>

actually that won't limit the number of characters, just what can be seen at one time. If that 's all you need to do, more power to you. But to actually limit what the user can input, use the following:

<INPUT TYPE="text" Name="FIeldName" Size=20 MAXLENGTH="20">

If you are trying to limit a field that is read only so the user only sees a portion, then i believe you will have to have a seperate field in your DB with the following calc:

Left(FieldName, 20)

With 20 being how many characters you want to be visible. Then in the CDML, of course the tag would be [FMP-Field: cLimitField].

Hope this helps

Jeremy

Create an account or sign in to comment

Important Information

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

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.