=== Forms with chart from VAB ===
Plugin Name: Forms with chart from VAB
Contributors: vabtopic
Donate link: https://it-vab.ru/vab-forms-with-chart#donate
Tags: feedback, form, contact form, forms with chart, forms with csv
Requires at least: 5.5.1
Requires PHP: 5.6.20
Tested up to: 6.8
Stable tag: 1.2.3
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Simple Plugin for creating forms, inquirer and questionnaires with the ability to display the results in the form of charts.
== Description ==
Forms with chart from VAB can manage numerous contact forms where you can flexibly customize the content of the forms with fairly simple markup. The main direction of the plugin is polls and questionnaires with the output of results in the form of diagrams of such fields as «Check boxes», «Radio buttons», «Drop-down list» in pure css, but it is also suitable for creating other options for feedback forms, including those with the ability to send attachments , as well as write data to CSV files. Forms have built-in spam protection and more.
= Docs and support =
You can find more detailed information about Forms with chart from VAB on [it-vab.ru](https://it-vab.ru/vab-forms-with-chart/).
= Forms with chart from VAB needs your support =
It is hard to continue development and support for this free plugin without contributions from users like you. If you enjoy using Forms with chart from VAB and find it useful, please consider [making a donation](https://it-vab.ru/vab-forms-with-chart#donate). Your donation will help encourage and support the plugin's continued development and better user support.
= Privacy notices =
With the default configuration, this plugin, in itself, does not:
* track users by stealth;
* write any user personal data to the database;
* send any data to external servers;
* use cookies.
In the form settings, you can activate the plugin actions:
* logs the entered form data to a file for displaying the results of diagrams.
* logs the entered form data to a CSV files.
= Recommended plugins =
None
= Translations =
The plugin supports the ability to translate into any language. You can use special programs for translation, such as «Poedit». By default, the plugin is only translated into Russian.
== Installation ==
1. Download the plugin, unzip it and move the unzipped folder to the "wp-content/plugins" directory in your WordPress installation.
2. In your admin panel, go to **Plugins** screen (**Plugins > Installed Plugins**) and you'll find Forms with chart from VAB in the plugins section
3. Click on the 'Activate' button to use your new plugin right away.
4. Done ¯\_(ツ)_/¯
5. PS: Remember to click the **Enable auto-updates** link for this plugin so that you don't miss cool new features as they come in.
You will find **Contact** menu in your WordPress admin screen.
For basic usage, have a look at the [plugin's website](https://it-vab.ru/vab-forms-with-chart/).
== Frequently Asked Questions ==
Do you have questions or issues with Forms with chart from VAB? Use these support channels appropriately.
1. [FeedBack](https://it-vab.ru/контактная-форма/)
2. [Plugin's website](https://it-vab.ru/vab-forms-with-chart/)
= Can I add id and class attributes to a form element? =
Yes. You can add any id and class to a form by adding the form_id and form_class attributes into a [VABFWC] shortcode.
For example:
`[VABFWC id="2228" form_id="ThisID" form_class="new-class two-new-class"]`
= How to display form results anywhere else using shortcode? =
To display the results of the form in any other place, you need to add the shortcode «VABFWC_Graphic».
For example.
**1.** For page and post editor
`[VABFWC_Graphic id="2228" title="Title for shortcode" tag="h4" class="my_class"]`
**2.** PHP code
`echo do_shortcode( '[VABFWC_Graphic id="2228" title="Title for shortcode" tag="h4" class="my_class"]' );`
Where:
* id - form identifier (required);
* title - text before displaying form results (optional);
* tag - the tag in which the title will be wrapped (optional). Allowed tags - h1, h2, h3, h4, h5, h6, div, p, center;
* class - Sets the style class for the tag (optional);
= What filters exist? =
* VABFWC_validate_filter - Returns either true or false. If any condition returns true, the form will stop working (message will not be sent)
* VABFWC_fields_filter - Returns a string to display on the screen. Allowed HTML tag with attributes «type», «id», «class», «name», «value», «checked», «onfocus», «onchange»
* VABFWC_message_filter - Returns a string to display as text (message)
* VABFWC_message_after_filter - Returns a string to display as text (message). Fires after a successful email has been sent.
= How to use filters? =
Examples of using filters:
**1.** VABFWC_fields_filter.
The code below will add a hidden field via the "formInput" class, which will be with a default value of "WordPress". Only the tag without the