In list I have a column name Comments multiline text box Enhanced rich text (Rich text with pictures, tables, and hyperlinks) which is append changes to existing text, I want to validate that user must upload file in comment box before saving else it will not allow to save the item.
Tried using below code for blank value its working , but how to do for upload
function PreSaveAction(){
if($(".ms-rtestate-write[id^='Comments']")[0].innerHTML=="
"){alert('Please fill out Column B');
return false;
}
return true;
}
Replies
Know the answer? Post it — somebody with the same question will find it here.