Item10711: textboxlist not autocompleting when rendered with RENDERFOREDIT
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
This code:
<form>%RENDERFOREDIT{
form="%WEB%.RelationshipForm"
fields="Source"
}%</form>
Produces this HTML:
<input type="text" class="foswikiInputField jqTextboxList jqInitedTextboxList" id="Source" size="80" value="" name="Source">
The class metadata is missing the autocomplete URL.
The
RelationshipForm contains this line:
| Source | textboxlist | 80 | %SCRIPTURL{"view"}%/%WEB%/RelationshipForm?skin=text;section=termtopic | [[TaxonProfile.Relationships.Source][Source]] | |
When we edit a topic with this form attached, the autocomplete works. The HTML produced looks like:
<input type="text" class="foswikiInputField jqTextboxList {autocomplete: 'https://wiki.trin.org.au/TaxonProfile/Relationships/RelationshipForm?skin=text;section=termtopic'} jqInitedTextboxList ac_input" id="Source" size="80" value="TaxonProfile/Definitions.APII_NameSource" name="Source" autocomplete="off" style="">
--
PaulAlexander - 05 May 2011
Hi Paul, could you please try
this on your server? There are a couple of fixes not yet checked in to svn.foswiki.org that might have fixed it already, as the example is running just fine over here.
--
MichaelDaum - 05 May 2011
Hi Michael, I couldn't get the above script to work. The link
http://foswiki.org/System/JQueryAjaxHelper?section=topic;skin=text;baseweb=Tasks returns no results, nor does
http://trunk.foswiki.org/System/JQueryAjaxHelper?section=topic;skin=text;baseweb=Sandbox.
Select a topic on
http://trunk.foswiki.org/System/JQueryAjaxHelper#Server_section autocompletes as expected.
--
PaulAlexander - 06 May 2011
The pure autocomplete link doesn't return anything. Adding a
q=prefix
to the url however does:
http://foswiki.org/System/JQueryAjaxHelper?section=topic;skin=text;baseweb=Tasks;q=T
... which the autocomplete widget adds by itself as required of course.
--
MichaelDaum - 06 May 2011