I think that defining a Field in the model as "list: string" give you
that functionality without further configuration (just creating a
common web2py form intance). For using new lines you should use the
TEXTAREA tag (used for "text" type fields), and split the input string
with the Python built-in string manipulation functions at the
controller.

On 22 feb, 17:24, Larry Wapnitsky <[email protected]> wrote:
> Disclaimer:  I'm new to Web2py (2 days and loving it) and re-learning HTML
> after many years away from it.
>
> I have a large text field on a form whose input will be a list of items
> entered by the user, separated by some sort of delimiter (most likely a
> newline).  Each valid line item will be entered into the database as its
> own entity.
>
> How do I go about parsing this text box?  Everything I've seen so far talks
> about fields that come from/go to a database, but  this one doesn't do so
> directly.
>
> Let me know if I need to clarify.
>
> Thanks,
> Larry

Reply via email to