List Validation
Posted by Richard - Jun 22 ’16 at 09:26
I have created a SpForm Edit Screen on a SharePoint List, nothing complicated. I have applied a very simply List Validation (DateCol1 < DateCol2 "error") but it does not appear to work.
Does the List Validation not work in SPFORMS or is this something I've done wrong
-
Dmitry KozlovAdminMember for: 6 years 2 months 21 days
Hi Richard,
The validation works fine for me:
Here is the condition:
Please, note that the validation works on the server side, so you need to submit the form. Alternatively you can use our JS-framework and implement the validation in the client side. Here is the sample:
http://formsdesigner.blogspot.com/2014/07/how-to-conditionally-hide-disable-make.html
http://formsdesigner.blogspot.com/2015/07/passing-and-getting-date-object-to-and.html
-
RichardMemberMember for: 3 years 5 months 19 days
Slightly confused here. The Form opens fine I click SAVE (no code behind this just simple selection on form designer) but the list validation dos not kick in.
Doesn't the validation work different for EDITED data AND also I have disabled quick Edit on the List as I want to force everyone to edit using the SPFORM not the list.
Cheers
-
Dmitry KozlovAdminMember for: 6 years 2 months 21 days
[#2]: Does my sample above work for you? Possibly, you have specified incorrect validation condition.