[twill] how do you fill text box in a form so that it returns new line?
Titus Brown
titus at caltech.edu
Tue Mar 21 13:55:18 PST 2006
On Mon, Mar 20, 2006 at 02:50:02PM +0000, Norman Khine wrote:
-> hello,
-> i have form:
-> Form name=addquesansform
-> ## __Name__________________ __Type___ __ID________ __Value__________________
-> type select (None) [''] of ['', 'MCQ',
-> 'MAQ']
-> code text (None)
-> title textarea (None)
->
-> options textarea (None)
->
-> correct_options text (None)
-> answer textarea (None)
->
-> 1 submit (None) Add
->
->
-> and want to add a new line to the text box 'options' , so that the text
-> is listed one after the other.
->
-> >> fv addquesansform options 'lin1 line2 .... line n'
->
-> so that on the form it is:
->
-> line1
-> line2
-> ...
-> line n
Hi, Norman,
surprisingly, there's no way to do this at the moment without resorting
to straight Python. How does
fv <form> <field> "line1\nline2\nline3\n"
strike you as a solution?
cheers,
--titus
More information about the twill
mailing list