This topic is locked

Show/Hide Field1 based on Field2, but still sort by Field1 ?

2/13/2009 9:26:29 AM
ASPRunnerPro General questions
A
aspdummy author

This is pretty much using the standard Real Estate template, (retblresults_list). When the list page is loaded, the properties appear and are sorted by "Price". I have a field called "Featured_Title" for each listing. If "Featured_Title" is equal to "SOLD" I would like to hide the "Price" field on the list and view pags, but still have the property sorted in order of it's price. Is there a simple way to do this?
Thanks for any suggestions.

J
Jane 2/16/2009

Hi,
you can hide Price field using custom format on the "View as" settings dialog on the Visual Editor tab.

Here is a sample:

if rs("Featured_Title")="SOLD" then

strValue = ""

end if