Surendra Sharma

Surendra Sharma

Search This Blog

Thursday, July 6, 2017

How to remove validation summary messages from Sitecore WFFM Form

There are no ways from Sitecore desktop to control WFFM form validation messages.
 
Currently Sitecore showing all the messages at top of the form as 

WFFM Validation Summary Messages
WFFM Validation Summary Messages

However if you don't want to show these summary messages, then open file “Website\Views\Form\EditorTemplates\FormViewModel.cshtml” and locate below section

<div class="has-error has-feedback">
    @Html.BootstrapValidationSammary(false)
</div>
           
Either comment this section or simply add style to display none as  
 
<div class="has-error has-feedback" style="display: none;">
    @Html.BootstrapValidationSammary(false)
</div>

That’s it. Now all the validations summary no longer visible to end user.

WFFM form without Validation Summary Messages
WFFM form without Validation Summary Messages

I hope you like this Sitecore tip. Stay tuned for more Sitecore related tips.

Till that happy Sitecoring :)

Please leave your comments or share this tip if it’s useful for you.

5 comments:

  1. No need to add inline style
    change @Html.BootstrapValidationSammary(false) to @Html.BootstrapValidationSammary(true)
    true mean exclude property error

    ReplyDelete
  2. I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts. nemzetközi fuvarozásEuropa-Road Kft.

    ReplyDelete
  3. Thanks for sharing this quality information with us. I really enjoyed reading. Will surely going to share this URL with my friends. sviluppo siti web Milano

    ReplyDelete
  4. Proxy servers are used to control internet access in the workplace. Apart from blocking websites, proxy servers are used to provide a safe and secure browsing environment.how to choose the right one vpn

    ReplyDelete