Wiki source code of Eingangszähler-Plugin
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
2.2 | 1 | [[**Plugin download**>>url:https://customer.formcycle.eu/index.php/apps/files/?dir=/FORMCYCLE%20-%20Plugins%20Customer/fc-plugin-bundle-offline-counter&fileid=6487||target="_blank"]] (requires login) |
![]() |
1.1 | 2 | |
![]() |
2.2 | 3 | The submit count plugin is a workflow plugin that allows to set a form //online// or //offline// depending on a form specific counter. The plugin can be installed as a [[client->>doc:Formcycle.UserInterface.Client.Plugins.WebHome]] oder [[system plugin>>doc:Formcycle.SystemSettings.UserInterface.SystemPlugins.WebHome]]. This plugin is subject to additional charge. |
![]() |
1.1 | 4 | |
![]() |
2.2 | 5 | == Use case example == |
![]() |
1.1 | 6 | {{id name="fig_plugin_offline_counter_up"/}} |
![]() |
2.2 | 7 | {{figure image="plugin_offline_counter_up_en.png"}}Use of the submit count plugin to limit the number of regstrations via a form. With each submitted form record the counter is incremented by one. If 20 form records have been submitted than the form will be set //offline//.{{/figure}} |
![]() |
1.1 | 8 | |
![]() |
2.2 | 9 | The plugin is typically used to count the number of form records and to set the form //offline// if that counter reaches a certain number. This is usually needed for registration forms for events that hava a limited number of participants. If users cancel their event registration the plugin can also be used to set the form //online// again. |
![]() |
1.1 | 10 | |
11 | == Pluginparameter == | ||
12 | {{id name="fig_plugin_offline_counter_down"/}} | ||
![]() |
2.2 | 13 | {{figure image="plugin_offline_counter_down_en.png"}}Use of the submit count plugin to set the form //online// again if users cancel their registration. With each cancelation the counter value is reduced by one. If the counter reaches a value of 19 the form will best //online// again.{{/figure}} |
![]() |
1.1 | 14 | |
![]() |
2.2 | 15 | To use the plugin a new [[workflow>>doc:Formcycle.Designer.Workflow.WebHome]] action of type **Submit-Count-Plugin** needs to created. This action has three parameters: |
![]() |
1.1 | 16 | |
17 | ; COUNT_DIRECTION | ||
![]() |
2.2 | 18 | : This parameter can take the values {{code language="none"}}UP{{/code}} or {{code language="none"}}DOWN{{/code}}. These values determine whether the counter should be incremented or reduced by one. |
![]() |
1.1 | 19 | ; COUNT_SET_OFFLINE |
![]() |
2.2 | 20 | : This parameter takes a whole number value that determines at what counter value the form should be turned //offline//. |
![]() |
1.1 | 21 | ; COUNT_SET_ONLINE |
![]() |
2.2 | 22 | : This parameter takes a whole number value that determines at what counter value the form should be turned //online//. |