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.

7 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
  5. This reality upset Georgia fans since during and after the game they flung rocks a trash at all the Tech players. The following day an article in the Atlanta Journal, by an Athens sports essayist, ridiculed that Tech's football crew was just an assortment of Atlanta inhabitants with a couple of understudies tossed in. best free vpn for windows 10

    ReplyDelete
  6. By this new definition, the idea of technology is spread the word about. The connection among science and technology is characterized and coordinated into the texts. The intricacy of understanding technology is diminished. Another premise is accommodated future conversation of our technological world. Concise Finance Putney Retirement Mortgage

    ReplyDelete