Skip to main content

Search

Field Error Highlighting

Answered

Comments

4 comments

  • Vladyslav Noskov

    Hi Sandy

     

    If you use standard SharePoint mandatory fields then message 'You cannot leave this field blank' will be translated by SharePoint to that language that current user has in his profile as display language.

     

    If you use Rich Forms "Required Expression" so then you can try use also "Validation" and "Validation Text" Expressions where you can check language and show message in correct language. For making border red you can apply css style for such fields. You can, for example, use jQuery selectors on Form action and change border color with it.

     

    Best Regards

    Vladislav Noskov

    0
  • Matthias_Walter

    Hi Sandra Huntley,

    you can find two different possibilities in this knowledge base article How can I use CSS styles on my form?

    For your case you can use the following CSS styles:

    .ard-formwebpart .ms-csrformvalidation{
    padding:5px;
    border: 1px solid #bf0000;
    }
    0
  • sangel40

    Hi, 

     

    If I wanted to do the same thing for fields in a sub-list on the form, how would this be applied?

     

    Regards

    Sandy

    0
  • Christof

    Hi Sandra Huntley

     

    Validation of sublist's values is not a Rich Forms feature.

    For styling the SP ootb gridview messages check the HTML with developer Tool (F12) and add styles to the form same way as for Matthias described.

    As you see MS styled it with inline styles... so you have to add some " !important;" at the end of your styles.

    0

Please sign in to leave a comment.