Environment: SharePoint 2013 foundation
I'd like to make/validate the People Picker field required conditionally in the edit form of a task list. If the task status is changed to Completed, I want the people picker field to be required.
I tried using PreSaveAction to make this happen, but my code is not working properly. It continues to give an alert even when the people picker field is populated. My people picker field is named Assigned To.
What am I missing in this code? I've searched endlessly, but cannot make this happen.