How do I change the header text on a WebDialogWindow in Javascript.
I have tried this.
var header = oWebDialogWindow.get_header();
header.setCaptionText(hdnSubject.value);
However, it keeps telling me that the header is null.
Yes, here is the code I ad to add.
var oWebDialogWindow = $find('wdwMessages');
oWebDialogWindow.set_windowState(0x0);
oWebDialogWindow._header.setCaptionText('Header Text Here');
I believe you will not be able to access the header if the dialog is initially hidden. You may have to wait until the dialog is initially displayed.
Did you ever solve this issue? I have the same problem currently...