Line 1: Line 1:
 +
== Installation ==
 +
Grab in instance from <nowiki>https://gitlab.wikibase.nl/community/mw-wsform</nowiki>.
 +
Create a "'''FlexForm'''" folder in your Wiki extensions folder and extract the files there.
  
 +
==== Setup ====
 +
You can tweak '''FlexForm''' to an extent in your Localsettings.php<syntaxhighlight lang="php">
 +
$FlexFormConfig['secure'] = true; //( default is true ). Will render form that make no sense when inspected in the browser
 +
 +
$FlexFormConfig['sec_key'] = ""; // A salt key for encryption. Used together with "secure" option. Must be set when using multiple instances of a wiki
 +
 +
$FlexFormConfig['auto_save_interval'] = 30000; // defaults to 3 minutes.
 +
 +
$FlexFormConfig['auto_save_after_change'] = 3000; // defaults to 3 seconds after last change
 +
 +
$FlexFormConfig['FlexFormDefaultTheme'] = "plain"; // Currently the only form
 +
 +
$FlexFormConfig['rc_site_key'] = ""; // reCaptcha site key
 +
 +
$FlexFormConfig['rc_secret_key'] = ""; // reCaptcha secret key
 +
 +
$FlexFormConfig['file_temp_path'] = ""; // Currently not is use.
 +
 +
$FlexFormConfig['form_timeout_limit'] = 7200; // 7200 seconds is the default
 +
</syntaxhighlight>
 +
 +
==== Finally ====
 +
Add the following line at the end of your LocalSettings.php to enable the extension :<syntaxhighlight lang="php">
 +
wfLoadExtension( 'FlexForm' );
 +
</syntaxhighlight>
 +
 +
==== Notification/Messages ====
 +
'''FlexForm''' has a notification system build in. This is used to show possible errors or success / custom  messages.
 +
To enable this.. add to your header page :<syntaxhighlight lang="php">
 +
<_form showmessages />
 +
</syntaxhighlight>

Revision as of 16:26, 15 February 2022

Installation

Grab in instance from https://gitlab.wikibase.nl/community/mw-wsform. Create a "FlexForm" folder in your Wiki extensions folder and extract the files there.

Setup

You can tweak FlexForm to an extent in your Localsettings.php

$FlexFormConfig['secure'] = true; //( default is true ). Will render form that make no sense when inspected in the browser

$FlexFormConfig['sec_key'] = ""; // A salt key for encryption. Used together with "secure" option. Must be set when using multiple instances of a wiki

$FlexFormConfig['auto_save_interval'] = 30000; // defaults to 3 minutes.

$FlexFormConfig['auto_save_after_change'] = 3000; // defaults to 3 seconds after last change

$FlexFormConfig['FlexFormDefaultTheme'] = "plain"; // Currently the only form

$FlexFormConfig['rc_site_key'] = ""; // reCaptcha site key

$FlexFormConfig['rc_secret_key'] = ""; // reCaptcha secret key

$FlexFormConfig['file_temp_path'] = ""; // Currently not is use.

$FlexFormConfig['form_timeout_limit'] = 7200; // 7200 seconds is the default

Finally

Add the following line at the end of your LocalSettings.php to enable the extension :

wfLoadExtension( 'FlexForm' );

Notification/Messages

FlexForm has a notification system build in. This is used to show possible errors or success / custom messages.

To enable this.. add to your header page :

<_form showmessages />

ws-page-props