Is it possible to set conditional metadata for a document?
For instance, there are three metadatafields in my document: accountnumber, projectnumber and casenumber. A user can fill all three metadatafields but is required to fill at least one.
Is it possible to set conditional metadata for a document?
For instance, there are three metadatafields in my document: accountnumber, projectnumber and casenumber. A user can fill all three metadatafields but is required to fill at least one.
The best way I can see to do it is to add event receivers onto ItemAdding and ItemUpdating which checks to see if at least one of the three fields is populated, and if they are not, refuses to continue to add/update the item in question. You will probably want to implement some kind of warning in the form of a pop-up box or, if you want to be really fancy, an email that says why the add/update failed.
This requires a change in the new/edit form for that library, by e.g. inserting javascript that checks if 1 of the 3 fields has content. This is done through SharePoint Designer.