Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 ( #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
Node Status?
node history
Node Type: note [id://508030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-01-18 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?