开发者

Sharepoint form-check for spam words and prevent submission

开发者 https://www.devze.com 2023-02-12 01:55 出处:网络
Looking for: If \'these words\' are entered in this text box Disable the submit button Otherwise, submit.

Looking for:

If 'these words' are entered in this text box

Disable the submit button

Otherwise, submit.

This works for empty required fields:

<xsl:if test="@Required='TRUE'">
           <span style="color:#FF0000;font-size:14px;">&#160;*</span>
         </x开发者_如何学编程sl:if>       

But can't seem to make it work to test for unwanted words.


the above code is for displaying * in red color not for disabling the submit button. in case you need to disable the submit button you have to attach javascript to do the same

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号