Thanks fuzzicallogic! It's working now...however I had to remove the if clause because when the pagetitle is empty I receive a pop-up that it is empty and I can't proceed without entering something in there. Is there a way to bypass this issue?
I think, it should possible to prefill the pagetitle by onDocFormRender with something.
There are several ways to do this, but most are tricksy. I do this on my site by having a "blank" and duplicating it. That doesn't work for everything. Bruno17 has the better idea, I think.
thanks so much guys...I learned quite a few new things about modx...always a pleasure