Can you truncate long strings of text in a Notes feld

Posted on 2010-01-05
Last Modified: 2013-11-16
By default field widths are unlimited, if a field is in a table and a lot of text is written the table row is expanded.  

I don't want to restrict the field to only have x number of characters, but want the table to retain it's size with only the first portion of the text being displayed.

I have to consider too how the rest of the text would be viewed.

Is there any way of doing this?
Question by:nigelboyle
    LVL 22

    Expert Comment


    In edit mode, use OS-style fields.  These have a width property that you can use to prevent wrapping or skewing your table.

    In read mode, hide the editable fields and use a <Computed Value> element to display the text that was entered, but truncated it to prevent wrapping.

    When the form is in edit mode, the <Computed Value> elements should be hidden.

    Author Comment

    Thanks Bill, that helps, I understand your instruction.  I am having trouble with the hide on edit//read depending on the field though. As the fields are in one cell of a table, when I change the hide attributes of one, it changes the attributes of the other even though one is below the other.
    LVL 22

    Accepted Solution

    The hide attributes apply to the current paragraph.  Paragraphs are delimited by the newline character.  So, all you need to do is place each element on it's own line inside a cell in order to show\hide the elements independently.

    I hope this makes sense.  Here's an image showing what I mean.

    Author Comment

    Sorry Bill I missed a comment!  That all worked wonderfully - Thanks!

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

      In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
    Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now