Tags:
create new tag
view all tags

Question

I have defined a TWiki Form in a FormTemplate topic, I have enabled the Form in the Preferences, I have added the Form to a topic, I have edited the Form fields to contain data, and I have displayed that data in the body of my topic using the

%FORMFIELD%
variable.

What I want to do is, instead of simply displaying the Form data in the body of the topic text, I want to be able to edit that data where it is displayed so that my users don't have to scroll to the bottom of the page, click "Edit Form" to bring up the editable version of the Form, edit the data, and then save the form just to edit some data.

Is it possible to display editable Form fields where they are displayed in the body of the topic text, in the format that they appear in the Form (e.g. checkbox, radio button, text), that, when edited, update the data in the attached Form? If so, how?

Environment

TWiki version: TWikiRelease04x00x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS: Windows XP
Web Browser: IE 7.0
Categories: Forms

-- LarryTanis - 27 Jun 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Well, you could hand-write a HTML form that, when submitted, would update the TWiki form contents. Name the HTML form fields the same as the TWiki fields and use FORMFIELD to initialize the HTML form values. You could use an include file to make it more maintainable, but I don't know of anything that will generate the HTML form for you based on the TWiki form definition.

-- JustinLove - 28 Jun 2007

ControlsPlugin could be handy here, couldn't it?

-- FranzJosefGigler - 28 Jun 2007

It would be quite cool if we could use the datatable from the YahooUserInterfaceContrib to edit form variables. Maybe a future Plugin idea.

-- AndrewRJones - 29 Jun 2007

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-06-29 - AndrewRJones
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.