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 have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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:
Topic revision: r3 - 2008-11-07 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.