Question
Does anyone know how to include all
TWikiUsers in a drop list on a form?
- TWiki version:
- Web server:
- Server OS:
- Web browser:
- Client OS:
--
TWikiGuest - 11 Mar 2002
Answer
Use a
FormattedSearch with a regex to get all topics in the Main web that have a
* Email: user@domain bullet:
%SEARCH{"\* Email\: [^\@]+\@" scope="text" regex="on" web="Main" nosearch="on" nototal="on" format="<option name=\"$web.$topic\">$topic</option>"}%
Here is a sample (only showing a small subset of the 2500 users; remove the 'z' after the ':'):
Edit the topic to see how it works.
--
PeterThoeny - 11 Mar 2002
Follow-up
Is it possible to do it in a TWiki form? If I try to use the % SEARCH% in the form definition, it doesn't get expanded.
--
TWikiGuest - 12 Mar 2002
You need the latest
TWikiAlphaRelease, see
VariablesDoNotGetExpandedInForms
--
PeterThoeny - 12 Mar 2002