[twill] One quick stupid question

Titus Brown titus at caltech.edu
Thu Nov 24 09:39:20 PST 2005


-> Colleagues, how can I remove value from form "select" or "checkbox"?
-> 
-> example:
-> 
-> =====
->  >> showforms
-> Form name=Compose
-> ## __Name______ __Type___ __ID________ __Value__________________
->    description    textarea    id44278196   cccc
->    category        select        id44405067   ['2', '3'] of ['1', '2', 
-> '3', '4', ' ...
->    visible            select        id44405032   ['0'] of ['0', '10', 
-> '8', '14']
->    block              checkbox id44405275   ['yes'] of ['yes']
-> 
-> =====
-> I've set field "category" to "2" and "3" and checkbox "block" to "yes"
-> How to remove "3" from "category"? How to set "block" to "no"?
-> 
-> And, btw, can I do somethign like "fv 1 category '2 3 4' "?
-> 
-> Sorry for such dumb question, but I have to prepare huge, quick and 
-> dirty testing script and have no time to dig the answer out of sources.

Hi, Timur!

The only way to do it is to use 'formclear' to start with.  That should clear
all of the values.  Right now, 'fv' doesn't toggle, although perhaps it
should...

Unfortunately 'fv' only sets one value at a time.

best,
--titus



More information about the twill mailing list