문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top