0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WordPressのContact Form 7 を使って、入力画面→確認画面→送信完了画面を作る

Last updated at Posted at 2022-02-22

#Contact Form 7
プラグインをインストール

#Contact Form 7 add confirm
確認画面ようのプラグインをインストールする

[confirm "確認画面"][back "戻る"][submit "送信"]
↑こちらを追記

##確認画面にいかない!
https://info-con.co.jp/tips/wordpress-25-contact_form_7_add_confirm-v2/

#送信完了画面

[confirm "確認画面"][back "戻る"][submit "送信"]

<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
location = 'http://hoge.com/thank/';
}, false );
</script>

リダイレクト設定を行う

固定ページでthankページ作成

自分のページのURLを記述

location = 'http://hoge.com/thank/';

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?