27 April 2007

Amazing Notes Discovery

Well, for me, at least. :p

You know how it is, that if you want the user to be able to use linebreaks in a field on a web form that the field has to be rich-text? Well, not anymore. Just use a computed value featuring a "textarea" tag, setting the name and id equal to the notes field id, and enjoy.

Now, just hide the actual field on the web, and allow the computed value to show. Enjoy all the user benefits of being able to edit in a textarea, yet avoid all the hassles of working with rich-text fields.

Yep, it's that easy. If there was another way to do this, I don't know how, but this way works for me!

No comments:

Post a Comment