Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Sample events > Appearance

Hide repeating values on the List page

Scroll Prev Next More

 

Here is the typical List page with the list of cars sorted by make.

hide_repeating_values1

 

Sometimes you may need to make this screen less cluttered by removing the repeating values in the Make column. Something like this:

hide_repeating_values2

 

Here is how this can be done:

 

1. Add the following code to the List page: BeforeProcess event:

 

SESSION("Make")=""

 

2. Set the 'View as' type of the Make field to 'Custom' and paste the following code there:

 

if value=SESSION("Make") then
value=""
else
SESSION("Make")=value
end if

See also:

"View as" settings

AJAX-based sorting