0
Hello,
I am using the standard Sharepoint form, and I want to do a validation in a "person or group" type field, basically the editing form cannot save if this field is empty. I’ve tried it in some ways, but from what I understand with this kind of field it’s not so easy to "work" with it. the Code below is what I am currently using for other field types a Select and an Input in both are already working.
function PreSaveAction() {
var camp1 = $("select[title='camp1'] option:selected").val();
var camp2 = $("input[title='camp2']").val();
if(camp1 == "" || camp2 == "")
{
alert("Os Campos 'camp1', 'camp2' não podem ficar em branco.");
return false;
}
else{
return true;
}
}
Certinho Vlw...
– jucemberg do santos Paiva