Validating Multiple, Unrelated Conditions
-
14-02-2021 - |
Pregunta
In my list, I have several pairs of fields that need separate validation. I can do them individually, but I can't find the syntax to string them together.
Here's condition 1:
=IF(Outcome="Isolation",AND(NOT(ISBLANK([Isolation Release Date]))),TRUE)
Here's condition 2:
=IF(LTCF="Y - staff",AND(NOT(ISBLANK([LTCF Name]))),TRUE)
How do I combine them and can I have separate error messages?
No hay solución correcta
Otros consejos
Mostly is like Ganesh said, if you want to combine validation for different columns, PowerApps or a custom script will be inevitable.
Here are some articles may be helpful if you decide to use PowerApps:
https://powerapps.microsoft.com/en-us/blog/validation/
http://powerappsguide.com/blog/post/data---how-to-validate-input-data-against-other-fields
For using Java script, you Can Use PreSaveAction function to execute any JavaScript Code in New or Edit Forms for any SharePoint List before Saving the item.