=== Kakunin – Confirm Step for Contact Form 7 ===
Contributors: rgcglobalnet
Tags: contact form 7, confirm, confirmation screen, 確認画面, japanese
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: contact-form-7
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add a confirmation screen (確認画面) to Contact Form 7. Visitors review their data before sending. Drop-in for [confirm] and [back] tags.

== Description ==

In Japan, visitors expect to check what they typed before they send a contact form: **入力 → 確認 → 送信**. Contact Form 7 does not have this step. The plugin most sites used for it has not been updated since 2018.

**Kakunin** adds the confirmation screen to any Contact Form 7 form with two tags. There is no extra page to build and no shortcode to move. Your existing forms keep working.

= Why site owners choose Kakunin =

* **Fewer wrong emails and phone numbers.** Visitors see their data in a clean table and fix mistakes before they send.
* **Switch in two minutes.** It uses the same `[confirm]` and `[back]` tags and the same CSS classes (`wpcf7c-elm-step1`, `wpcf7c-elm-step2`) as "Contact Form 7 add confirm".
* **Built on Contact Form 7's own pipeline.** It uses CF7's REST submission and validation, so spam filters, reCAPTCHA, Turnstile, Flamingo and mail templates still work.
* **No jQuery and no page reload.** It is light and fast, and works with modern block themes.
* **Accessible.** The confirmation table gets focus and is announced as a region, and buttons are real `<button>` elements.
* **Private by design.** The free plugin stores nothing and calls no external service.

= Features =

* `[confirm "確認する"]` validates the input with your form's rules. If everything is valid, it shows the confirmation table instead of sending.
* `[back "修正する"]` returns to the form with all values kept.
* Your normal `[submit "送信する"]` button sends the message from the confirmation screen.
* Labels come from the `<label>` around each field, or from the text just before it. Markers such as `（必須）` or `*` are removed.
* It supports text, email, tel, url, number, date, select, checkbox, radio, textarea and file fields. For a file field, only the file name is shown.
* Multiple values are joined with "、", and line breaks are kept.
* Optional message on the confirmation screen through Additional Settings: `kakunin_intro: 以下の内容で送信します。`
* Forms without a `[confirm]` tag are not touched.
* Developer filter `kakunin_rows` to change or add rows.
* Translation-ready. Japanese is included.

= How it works =

1. Add `[confirm "確認する"] [back "修正する"] [submit "送信する"]` to your form, in place of the old submit button.
2. When the visitor presses **確認する**, Contact Form 7 validates the form. If there are errors they show as usual. If not, the form is hidden and a confirmation table appears.
3. The visitor presses **送信する** to send, or **修正する** to go back and edit.

= Kakunin Pro =

Kakunin Pro is an optional paid add-on for sites that need more:

* **Entries inbox:** every message sent through a confirm-step form is saved in your own database.
* **CSV export** in UTF-8 with BOM, so Excel opens Japanese text correctly. Spreadsheet formulas are neutralised.
* **Automatic deletion** after N days, which helps with your privacy policy.
* **Thank-you page per form:** `kakunin_thanks: https://example.jp/thanks/`
* **Spam protection without captcha:** a hidden honeypot field and a signed minimum-time check.

| | Free | Pro |
|---|:---:|:---:|
| Confirmation screen with [confirm] / [back] | ✓ | ✓ |
| Compatible with "Contact Form 7 add confirm" forms | ✓ | ✓ |
| Custom intro message | ✓ | ✓ |
| Entries inbox in WordPress | – | ✓ |
| CSV export (Excel-friendly) | – | ✓ |
| Automatic deletion after N days | – | ✓ |
| Thank-you page redirect per form | – | ✓ |
| Captcha-free spam protection | – | ✓ |
| Email support | Forum | ✓ |

Pricing and download: [rgcglobalnet.com/kakunin-confirm-step](https://rgcglobalnet.com/kakunin-confirm-step/)

= 日本語 =

Contact Form 7 に「入力 → 確認 → 送信」の確認画面を追加します。`[confirm]`・`[back]` タグと CSS クラスは「Contact Form 7 add confirm」と互換性があるため、既存のフォームはそのまま使えます。確認用の固定ページを作る必要はありません。データの保存や外部への送信は一切行いません。

== Installation ==

1. Install and activate **Contact Form 7**, then install **Kakunin** from Plugins › Add New.
2. Go to Contact › Contact Forms and edit a form.
3. Replace the submit button with `[confirm "確認する"] [back "修正する"] [submit "送信する"]`.
4. Save. Done. The submit button now appears only on the confirmation screen.

== Frequently Asked Questions ==

= I used "Contact Form 7 add confirm". Do I need to change my forms? =

No. Deactivate the old plugin and activate Kakunin. The `[confirm]` and `[back]` tags keep working, and custom CSS that uses `wpcf7c-elm-step1` / `wpcf7c-elm-step2` is respected.

= Do I need a separate confirmation page? =

No. The confirmation screen appears inside the same form, without a page reload.

= Is the data validated before the confirmation screen? =

Yes. Contact Form 7 runs its normal validation when the visitor presses the confirm button. Required fields, email format and the rest are checked first, and the confirmation screen only appears when everything is valid. The data is validated again on send.

= Does it work with reCAPTCHA, Turnstile, Akismet and Flamingo? =

Yes. Kakunin only adds a step to Contact Form 7's normal submission, so spam checks and Flamingo storage work as before. Captcha and acceptance fields are not shown in the confirmation table.

= Where are messages stored? =

The free plugin stores nothing. Contact Form 7 sends the email as usual. Kakunin Pro can also keep an entries inbox in your own database, with automatic deletion.

= Can I change how the confirmation table looks? =

Yes. It is a plain `table.kakunin-table` inside `div.kakunin-view`, so you can style it from your theme. Developers can change the rows with the `kakunin_rows` filter.

= Does it work with file uploads? =

Yes. The confirmation screen shows the file name. The file itself is uploaded and attached only when the visitor sends the form.

= Will it slow down my site? =

No. Assets load only where Contact Form 7 loads its own: under 4 KB of JavaScript with no jQuery, plus a small CSS file.

== Screenshots ==

1. Input screen: a normal Contact Form 7 form with the "入力内容を確認する" button.
2. Confirmation screen: the visitor reviews the data, then presses "送信する" or "修正する".
3. Confirmation screen on a smartphone.
4. Form editor: add the [confirm], [back] and [submit] tags.
5. Kakunin Pro: entries inbox with CSV export, retention and spam protection settings.
6. Additional Settings: custom intro message and thank-you page (Pro) per form.

== Changelog ==

= 1.0.1 =
* Readme: the company name now reads "RGC GLOBAL NET SERVICES SLU". No functional changes.

= 1.0.0 =
* First release: [confirm] and [back] tags, confirmation table, compatibility with "Contact Form 7 add confirm" forms, Japanese translation.

== Upgrade Notice ==

= 1.0.1 =
Readme-only correction (company name). No functional changes.

= 1.0.0 =
First release.

== Legal ==

Kakunin is developed by Pinzell, a product line of RGC GLOBAL NET SERVICES SLU (Spain). Contact Form 7 is a plugin by Takayuki Miyoshi; Kakunin is not affiliated with or endorsed by it.
