Styling the Form "This information is required" Er

Posted by Community Admin on 03-Aug-2018 17:11

Styling the Form "This information is required" Errors

All Replies

Posted by Community Admin on 04-Apr-2012 00:00

I have been trying to figure out how (using CSS) to style the text for the "This information is required" messages that are displayed in a sitefinity 4.4 form.  Checking the element in Chrome is always lists individual ones like:  <div class="sfError violationMessageC002_ctl00_ctl00_ctl00_C001"> This information is required</div>

Is there something I can define in the CSS class I assigned to the form element?

Posted by Community Admin on 06-Apr-2012 00:00

Hi,

As I understand you want to get all error messages on a specific form and style them further. For that purpose you can first get them using jQuery selector by class and add your own css class:

$('.sfError').addClass("yourClass")

Please let me know if I understood your question or whether you need further help.

Kind regards,
Veronica Milcheva
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed