Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: how to add default value using hash value and delimiter to text area in template toolkit

by shenme (Priest)
on Nov 12, 2005 at 22:06 UTC ( [id://508030]=note: print w/replies, xml ) Need Help??


in reply to how to add default value using hash value and delimiter to text area in template toolkit

1) A <textarea> form element is different from the other <input> elements in that it has a beginning and ending tag, with the 'value' between those. Thus to start a textarea with the value "Howdy!" you would code
<textarea>Howdy!</textarea>
So it looks like you could add the value in your template by using
<textarea rows="4" name="[% element.name %]">
[% element.value %]
</textarea>

2) I'm not sure I understand your question. You can 'see' separate values if they are on separate lines in the textarea. You may have to check for CR or LF characters, and to do that you might have to force CR/LF characters by playing with the wrap parameter, such as

<textarea wrap="hard"></textarea>
  • Comment on Re: how to add default value using hash value and delimiter to text area in template toolkit

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://508030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found