Hm, not quite what I was looking for -- that removes the saved selections as well.
To clarify, here's my initial view:
label 1: ( )c ( )r ( )t ( )s
label 2: ( )c ( )r ( )t ( )s
label 3: ( )c ( )r ( )t ( )s
label 4: ( )c ( )r ( )t ( )s
label 5: ( )c ( )r ( )t ( )s
A user makes selections on the first three:
label 1: (x)c ( )r ( )t ( )s
label 2: ( )c (x)r ( )t ( )s
label 3: ( )c (x)r ( )t ( )s
label 4: ( )c ( )r ( )t ( )s
label 5: ( )c ( )r ( )t ( )s
They click submit, and this appears:
label 1: (x)c ( )r ( )t ( )s
label 2: ( )c (x)r ( )t ( )s
label 3: ( )c (x)r ( )t ( )s
label 4: (x)c ( )r ( )t ( )s
label 5: (x)c ( )r ( )t ( )s
Note that 4 and 5 now have c selected.
If I use print $query->defaults('Restore to Default');, it removes all selections from all rows.
What I want it is to look like view #2 above, after clicking submit:
label 1: (x)c ( )r ( )t ( )s
label 2: ( )c (x)r ( )t ( )s
label 3: ( )c (x)r ( )t ( )s
label 4: ( )c ( )r ( )t ( )s
label 5: ( )c ( )r ( )t ( )s
thanks, Scott
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.