Just wondering if there is a way to check whether a People Picker field is empty using the function "PreSaveAction". I'm able to do it with other types of field (text field, dropdown field) but with People Picker field is not working with the same logic.
The example below is the way that I'm doing with text field.
function PreSaveAction()
{
if(getField('field1').value == "" && getField('field2').value == "" && getField('field3').value == "" && getField('field4).value == "" && getField('field5').value == "" && getField('field6').value == "" && getField('field7').value == "" && getField('Produção - Emitente').value == "")
{
alert('Please, fill the fields bla bla bla bla..."');
return false;
}else{
return true;
}
}
Thanks