AnsweredAssumed Answered

Present a message

Question asked by sorbelal on Jan 19, 2011
Hello

I want to present a custom message on the screen. I had prepared a script like this:

var cats = document.properties["cm:categories"]
for (var i = 0; i < cats.length ; i++)
{
var catName = cats.name;
if (cats.length < 3)
{
status.message = "error, you must categorized the document";
status.redirect = true;
break script;
}
document.save();
}

On the screen, I can see the error "undefinied label" and I want to see "error, you must categorized the document".

Thank you.

Outcomes