Item10711: textboxlist not autocompleting when rendered with RENDERFOREDIT

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: FlexFormPlugin, JQueryPlugin
Branches:
Reported By: PaulAlexander
Waiting For:
Last Change By: PaulAlexander
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://translate.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
 

ItemTemplate edit

Summary textboxlist not autocompleting when rendered with RENDERFOREDIT
ReportedBy PaulAlexander
Codebase trunk
SVN Range
AppliesTo Extension
Component FlexFormPlugin, JQueryPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r8 - 26 Jun 2012, PaulAlexander
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy