Showing posts with label validation. Show all posts
Showing posts with label validation. Show all posts

Thursday, 22 February 2018

SharePoint : How to make a field mandatory based on another field, in a datasheet list view?


You can use List Settings -> Validation Settings for this.

e.g. =IF([Replacement Available]="Yes",IF([Replacement]="",FALSE,TRUE,TRUE)

This formula would affect the default 'new item' form as well.

Wednesday, 11 October 2017

SharePoint InfoPath Form: How to ensure that a text field contains at least 100 characters?


Specify a validation rule for the field as below:


Here 'JD' is the field name.

Condition is set to "does not match the pattern"

Pattern: .{100,}

A . would allow the user to type in any character as long as the length is at least 100.