Developer forum

Forum » Templates » Datalist - Search option

Datalist - Search option


Reply
We want to search in datalist result (list template). We have heard that it should be possible - but can anyone state how??

Replies

 
Reply
Hi Michael

At this time we do not have a search module for Data Lists.
But you can do the following:

1. Create a paragraph with a form containing a textfield called 'searchtext' and a submit button.
2. The form must have the attribute GET.
3. Create a list where you have a CONTAINS condition that matches Request("searchtext").

This should generate a list that is filtered on URL parameter 'searchtext'.

// Dammark

 

You must be logged in to post in the forum