This question about Using an extension: Answered

PreferencesPlugin usage

Hi,

I am trying to use the PreferencesPlugin but I can't understand how.

I saw the EDITPREFERENCES field and I think that it is used combined with a data form.=

Could you please give an example of how to use the PreferencesPlugin together with a data form?

Thanks in advance!

Answer

DataFormTopic

| *Name*  | *Type* | *Size* | *Values* |
| Priority | select | 1 | High,Normal,Low |
| Urgency | select | 1 | Nominal,Elevated,Critical |

SettingsTopic

   * Set Priority = 
   * Set Urgency = 
   * Set TeamLeader = 
%EDITPREFERENCES{"DataFormTopic"}%

In this scenario the Priority and Urgency setting will render as dropdowns where the user can select from the values listed in the when the "Edit Preferences" button is pressed and the TeamLeader will be rendered as the default textbox.

Rendered Edit Settings:

capture.jpg

QuestionForm edit

Subject Using an extension
Extension
Version Foswiki 1.0.6
Status Answered
Related Topics
I Attachment Action Size Date Who Comment
capture.jpgjpg capture.jpg manage 18 K 30 Apr 2014 - 14:54 JohnHart Rendered Edit Settings
Topic revision: r3 - 30 Apr 2014, JohnHart
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