Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 8687 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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?

Posted

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

This topic is 8687 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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