エラーメッセージを個別に表示するのではなく、入力要素自体にエラーメッセージを表示したいと思います。メッセージを表示する必要がある要素をどのようにキャプチャしますか?
このコード:
function checkForm(form) {
if (yname.getValue() == "" || yname.getValue() == "Your Name" || name.getValue() == "" || name.getValue() == "Name of the Book" || url.getValue() == "" || url.getValue() == "URL of the Book"){
[id-of-the-element].setTextValue("Field cannot be empty!");
return false;
}