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
--
LarryTanis - 27 Jun 2007
Answer
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