Gossamer Forum
Home : Products : DBMan : Customization :

Sorting on hidden field

Quote Reply
Sorting on hidden field
I have a hidden field (Modified) which defaults to the system date, and is updated on edit. It is not available to sort on - I assume because it is "hidden" I would like to be able to sort on it so the most recently updated records are displayes first.
Quote Reply
Re: Sorting on hidden field In reply to
If you want all of your searches to be sorted on the same field, take out

Code:
Sort By:
<SELECT NAME="sb">
<OPTION>---
~; for (my $i =0; $i <= $#db_cols; $i++) { print qq~
<OPTION VALUE="$i">$db_cols[$i]</OPTION>\n~ if ($db_form_len{$db_cols[$i]} >= 0); } print qq~
</SELECT>

from html_search options, and instead use

<input type="hidden" name="sb" value="3>

Replace the 3 with the number of the field you want to sort by.


------------------
JPD