The pieces

DataForm

Which would look something like...

Name Type Size Values Tooltip Attributes
Foo mydata+input1     editable  
Bar mydata+input2     editable  
AutoFoo? mydata+response1     read-only, populated automatically based on inputs...  
AutoBar? mydata+response2     "  
AutoCat? mydata+response3     "  

Foswiki::Form::Mydata

A custom Foswiki::Form type created at lib/Foswiki/Form/Mydata.pm
  • Calls Foswiki::Func::addToZone() to add javascript to the page, and produces an HTML form element appropriately decorated for the javascript to recognise
  • This javascript would detect changes in the editable fields, and update the read-only fields

Foswiki::Plugins::MyPlugin

A plugin (see EmptyPlugin? for an example) which consists of at least lib/Foswiki/Plugins/MyPlugin.pm
Topic revision: 18 Aug 2011, PaulHarvey
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads