Question

For example, in a workflow task, I might have a master field called "Approve" which, if set to "No", makes it unnecessary to complete the rest of the form (and thus makes them non-mandatory). Is there a clean way of implementing this?

Was it helpful?

Solution

For instances like that, in the past I've marked all the fields optional in the list then created a custom new/edit form and included jQuery and PreSaveAction() to do my own logic.

I'd have the Approve column visible with everything else hidden. If they select no, then they can save the form with nothing else required. If they select Yes, then the remaining hidden fields become visible.

OTHER TIPS

This really depends on how you implement the forms in the fields. If you customize them with InfoPath, you can use conditional formatting to make fields mandatory by using rules. You can set a rule like: If Field1 = "yes" then Field 2 cannot be blank. This would make it mandatory based on the answer.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top