Tags:
create new tag
, view all tags

AUTOCOMPLETE{ attributes } -- autocomplete input field with select options as you type

  • This adds autocomplete to HTML forms and TWikiForms. The %AUTOCOMPLETE{}% variable is handled by the AutoCompletePlugin. See plugin topic for documentation.
  • Syntax: %AUTOCOMPLETE{ attributes }%
  • Example autocomplete field for HTML form:
    <form name="myJumpForm" action="%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%">
    %AUTOCOMPLETE{name="topic" datatopic="Sandbox.AutoCompletePluginTestData" onfocus="twiki.Form.clearBeforeFocusText(this);" onblur="twiki.Form.restoreBeforeFocusText(this);" datasection="topiclist" value="Jump" formname="myJumpForm" class="twikiInputField twikiInputFieldBeforeFocus" }%
    </form>
  • Example autocomplete field definition of a TWikiForm:
    | *Name* | *Type* | *Size* | *Values* | *Tooltip message* | *Attributes* |
    | Username | autocomplete | 25em | datatopic="Sandbox.AutoCompletePluginTestData" datasection="usernames" delimchar="," itemformat="item[0] + ' (' + item[1] + ')'" | |  |
  • Related: AutoCompletePlugin
Topic revision: r3 - 2011-05-15 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.