We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>HowToSearchFormFields (06 Jul 2006, LynnwoodBrown)
Tags:
create new tag
, view all tags

Question

How can I write a custom %SEARCH% that look for all forms that have a particular value in field?

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: ?
Web server: ?
Perl version: ?
Client OS: Windows XP
Web Browser: Mozilla Firefox
Categories: Search

-- TWikiGuest - 05 Jul 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Look for example at the raw text of the AskedQuestions topic, it searches for all form fields named SupportStatus with value AskedQuestions. Here is the source:

%<nop>SEARCH{ "[S]upportStatus.*value\=.*[A]skedQuestions" casesensitive="on" regex="on" nosearch="on" noheader="on" order="modified" format="%SUPPORT_SEARCH_FORMAT%" }%

Please read the details in VarSEARCH and FormattedSearch.

-- PeterThoeny - 06 Jul 2006

Also have a look at SearchPatternCookbook which covers this and similar use cases.

-- LynnwoodBrown - 06 Jul 2006

 
Topic revision: r4 - 06 Jul 2006 - 14:59:24 - LynnwoodBrown
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback