List Validation

rss

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 Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 21 days
    #1 by Dmitry Kozlov Jun 22 ’16 at 12:01

    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

  • Richard
    Member
    Member for: 3 years 5 months 19 days
    #2 by Richard Jun 23 ’16 at 04:23

    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 Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 21 days
    #3 by Dmitry Kozlov Jun 24 ’16 at 04:06

    [#2]: Does my sample above work for you? Possibly, you have specified incorrect validation condition.

Displaying 1 to 3 of 3 messages