Groups
Groups
Sign in
Groups
Groups
a-blog cms forum
Conversations
Labels
About
Send feedback
Help
フォームでメールアドレスの重複を禁止したい
1,197 views
Skip to first unread message
poph...@gmail.com
unread,
Jun 18, 2015, 10:15:23 PM
6/18/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to a-blo...@googlegroups.com
お世話になります。
申込みフォームを作成したいのですが、同じユーザーからの申込みを重複させたくないため、
過去に送信されたメールアドレスでフォームを送信できないようにするということは可能でしょうか?
可能な場合、同一のフォームID内で重複のチェックをすることになりますか?
申込みキャンセルを受け付ける必要があるのですが、その場合は
申込みとは別のフォームIDでキャンセル受付フォームを作成すれば、
申込みフォームと重複したメールアドレスでも送信できるでしょうか?
よろしくお願いします。
Godai Hori
unread,
Jun 21, 2015, 9:34:01 PM
6/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to a-blo...@googlegroups.com
いつもお世話になっております。
アップルップルの堀と申します。
フォームのバリデータの機能でemailの重複をチェックする、duplicationという機能があります。
これで過去に送信されたメールアドレスかどうかをチェックすることができます。
下のようにinput type="hidden"のinput要素をフォームの該当する場所に書いておくだけで実装できます。
<input
type
=
"hidden"
name
=
"mailaddress:validator#duplication"
/>
もしemailが重複していれば、emailの重複チェックのない別のフォームIDのあるフォームで申し込みをしていただくと重複したメールアドレスでも送信可能です。
詳しくはこちらをごらんください。
http://developer.a-blogcms.jp/reference/latest/form_option.html
よろしくお願いします。
Reply all
Reply to author
Forward
0 new messages