差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
apps:public:inquiry [2020/03/18 17:21] – admin | apps:public:inquiry [2020/03/18 17:24] – admin | ||
---|---|---|---|
行 65: | 行 65: | ||
</ | </ | ||
</ | </ | ||
- | <div class=" | + | <div class=" |
<label class=" | <label class=" | ||
<div class=" | <div class=" | ||
< | < | ||
+ | <span class=" | ||
</ | </ | ||
</ | </ | ||
行 183: | 行 184: | ||
this.message.name = ''; | this.message.name = ''; | ||
this.message.email = ''; | this.message.email = ''; | ||
+ | this.message.recaptcha = ''; | ||
}, | }, | ||
clearErrors() { | clearErrors() { | ||
行 190: | 行 192: | ||
this.errors.name = ''; | this.errors.name = ''; | ||
this.errors.email = ''; | this.errors.email = ''; | ||
+ | this.errors.recaptcha = ''; | ||
}, | }, | ||
validate() { | validate() { | ||
行 195: | 行 198: | ||
this.clearErrors(); | this.clearErrors(); | ||
this.message.recaptcha = document.getElementById(' | this.message.recaptcha = document.getElementById(' | ||
- | if (!this.message.recaptcha ) { | + | if (!this.message.recaptcha) { |
- | this.errors.type = ' | + | this.errors.recaptcha |
isValid = false; | isValid = false; | ||
} | } |