2015-05-13 50 views
0

我的ReCaptcha FormControl在我的WebPartKentico驗證碼不會阻止表單提交

<script src='https://www.google.com/recaptcha/api.js'></script> 
...... 

    <div class="form-group"> 
     <label>Please type the word below. If required use the buttons to change or listen to the word.</label> 
     <cms:RecaptchaControl ID="reCaptchaVld" runat="server" data-theme="clean" data-callback="cpCallBack();" PrivateKey="xxxxxxxxx" PublicKey="xxxxxxxxx" data-recaptcha="" CssClass="g-recaptcha" /> 
    </div> 

我做了一個測試,我填寫所有必填字段,但留下的ReCaptcha空白或未選中,點擊提交按鈕的形式是提交成功。

我錯過了什麼嗎?

回答

1

如果是您的自定義web部件,則需要調用IsValid()方法來檢查文本是否正確輸入。

相關問題