This question about Using an extension: Answered

Retrieve data from topic and load into form for edit

I have created a form using the FormPlugin. I can enter data and save the data to an auto inc topic. How do I get the form created using the FormPlugin to load the data from a topic for viewing / editing?

Any help is appreciated. Thanks

-- ChrisMoorhouse - 11 May 2012

If you've stored the form data in the saved topic's data form, you can retrieve the values using FORMFIELD macro. Inside the FORMELEMENT attributes you need to escape the macro tokens % and " using $percnt and $quot.

For example:
%FORMELEMENT{
  value="$percntFORMFIELD{$quotMyDataField$quot topic=$quotMyTopic$quot}$percnt"
}%

-- ArthurClemens - 11 May 2012
 

QuestionForm edit

Subject Using an extension
Extension FormPlugin
Version Foswiki 1.1.5
Status Answered
Related Topics
Topic revision: r2 - 11 May 2012, ArthurClemens
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