• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5745: TWikiForm value argument ignored, polluting form fields

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension AutoCompletePlugin Urgent Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Using the example code from the plugin topic, autocomplete fields in a TWikiForm are polluted with all of the AutoCompletePlugin arguments, even though the autocomplete actually works. Setting the value argument doesn't fix this.

Example:
autoform.png

It looks like AutoCompletePlugin.pm just grabs the whole Values cell from the form definition, and doesn't do any processing to filter out its own arguments.

One would expect that these would not be output in rendered form HTML, and that if you set AutoCompletePlugin's value argument, that value would be used as the default value, but it doesn't on my install at least.

Setting $params{value} to an empty string (AutoCompletePlugin.pm, line 70) seems to fix it, but that doesn't allow one to set default values with the value argument, as it hard codes everything to an empty string.

Ok, I'm dumb - that just breaks editing entirely frown

I need to RTFM some more, and see how to not render that stuff in edit mode...

Any help?

-- TWiki:Main/AaronFuleki - 02 Jul 2008

This has now been fixed.

-- TWiki:Main/AndrewRJones - 12 Sep 2008

ItemTemplate
Summary TWikiForm value argument ignored, polluting form fields
ReportedBy TWiki:Main.AaronFuleki
Codebase 4.2.0
SVN Range TWiki-5.0.0, Mon, 30 Jun 2008, build 16955
AppliesTo Extension
Component AutoCompletePlugin
Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:17504
TargetRelease n/a
ReleasedIn

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng autoform.png r1 manage 10.3 K 2008-07-02 - 15:28 AaronFuleki  
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-09-12 - AndrewRJones
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback