Tags:
create new tag
view all tags

Question

I want to display only the first line of a multi-line textarea. I know I can use $formfield(School Contact,10,...) to limit the display to 10 characters. But, what I really want is just the first line where the person's name resides.

I cannot find any documentation on how to do this?

Environment

TWiki version: TWikiRelease04x02x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser: Fox
Categories: Forms

-- JohnGee - 19 Sep 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

You could use the SpreadSheetPlugin for this: SEARCH for the end of the line (<br />) and REPLACE from that point to the end of the string with null (use LENGTH to find the end of the string).

Another option is to use a FormattedSearch pattern to clip it with a regular expression.

-- SeanCMorgan - 22 Sep 2008

Closing this after more than 30 days of inactivity, seems to be answered.

-- PeterThoeny - 07 Nov 2008

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-11-07 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.