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.

Text field with auto numbered lines

Featured Replies

I'm taking on a client the has been using MS Word.Obviously with word you can auto number lines. In their reports that go to another agency they are required to have a text narrative where each line in numbered. i.e.

1. something here is writen

2. by the user and it could go

3. on for several pages.         

 

how can this be accomplished ?  

 

In what format is this report? And by "line" do you also mean lines created by automatic wrapping of the text?

Edited by comment

  • Author

Yes, this includes wrapping text lines. IT really needs to print this way. it a police report that has to go to court. 

I would prefer not to do this within Filemaker and look for a way to export the text to another application (e.g. Word) that can do it more elegantly.

The real problem here is not line numbering, but line breaking. Filemaker has no idea where the automatic line breaks are - so if you want to number the lines yourself, you also need to break them yourself. And your tool set for this task is severely limited, because the most you can do is count the characters. That's woefully inadequate when dealing with a proportional font.

If you do decide to go this way, I would suggest you do the line breaking and numbering only at the end, and in a separate field. Otherwise you will run into problems if the user wants to edit the original text.

If you have the Advanced version, you can utilize two existing custom functions: Abscind() by Ray Cologon and LineNumbering() by Daniele Raybaudi for this. I am attaching a simple demo showing how (with a slight modification to the latter). Otherwise you will have to rewrite them as looping scripts (or get someone to install the custom functions for you).

 

NumberedLines.fp7

Edited by comment

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.