Home > Domino Tips > Developer > HTML > Multi-line text fields on the web
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

HTML

Multi-line text fields on the web


Bill Westaway
06.20.2001
Rating: -2.80- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Quite often there's a need for multi-line text fields in native Notes. These fields not only don't work in a browser they can cause data loss if they are browser editable even if no change to that field is made while the rest of the document is being edited on the browser.

The problem is a result of a Notes deficiency: Notes "assumes" that if you define a field as "text" and editable you must mean the HTML "<input>" field which, quite unfortunately, ALWAYS truncates the data at the first carriage return, even if that return was put there in native Notes and even if there are more lines of text to follow.

Think about what could happen: you crete and/or edit a document in native Notes. A text field that ALWAYS allows the use of a carriage return to start a new line in the text field contains a few paragraphs of text you really want to be text and not rich text. Then a user opens the document from a browser and the browser version of the document allows editing of the same field; upon save of the document that text field will only contain the data up to the first carriage return. Yes, you've lost the su


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
HTML
Write HTML and JavaScript in Notes view rows and columns on the Web
Open Lotus Notes documents in Microsoft Word without coding
Trap an attachment path via the Domino file upload control field
A bevy of Notes/Domino development tips
Styling Lotus Domino Web fields
How to convert Microsoft Word or Microsoft Excel documents to HTML
An easier way to view multiple columns on the Web
How to print a form in landscape format automatically
Tip contest winner: Hide view column while being able to sort it
HTML signature maker

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


bsequent paragraphs without necessarily having edited that field.

You really wanted that field to be defined as an HTML "<textarea>" but Notes Designer does not allow you to stipulate an editable text field as an HTML <textarea>. Apparently, the Notes development team doesn't consider data loss to be a high severity bug. It would be great to have a little switch that allowed the notes programmer to choose between HTML <input> and <textarea>, but I digress .....

There is a roundabout way of accomplishing the same task with the use of hide formulae and Pass-thru HTML on the Notes form. You can define the editable text field as a <textarea> with a couple of tricks.

Code

Let's say you're defining an editable text field called "TextDescription".

The trick is to make sure the HTML <textarea> is named the same as the Notes field AND to make sure the Notes field is hidden from the Web when in edit mode.

Now, if I could only get the Domino server to render the same font sizes I use for my Notes forms without redoing the whole form in HTML.

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts