I´ve encountered a little problem when I want to validate my fields (columns) in my custom list in Sharepoint 2013.

I give you an example:

I have a custom form made in Infopath with several fields and 2 date and time fields. One is lets call it "StartDate" which never changes and the other is "EndDate" and that date changes. And when I have "createListItem" form, the "EndDate" validation must be "StartDate+365days", that is pretty easy to do. But when I need to edit list item, I need another validation of "EndDate", this time "EndDate+365days". Is there any possible way to do it without programming? I tried it using additional fields and using calculated type of fields but was not able to achieve of what I want?

Any suggestions? Maybe someone here was trying to do same thing.

Thanks in advance.

1 Answer 1


It is impossible to do different validations for a same field on InfoPath form views. InfoPath rules run for an InfoPath form, not a special view. If we change a rule in a view, the rules on other views will be changed.

For your requirement, I suggest you use JavaScript code with PreSaveAction() function to achieve it.
SharePoint Form Validation Using JavaScript + jQuery

  • ok thanks, I will look into it :) Commented Jun 19, 2019 at 11:35
  • if my reply helps you, please remember to accept it as answer. :)
    – Kally
    Commented Jun 20, 2019 at 3:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.