Avatar

Not applicable

Hi Malcolm,

I was trying to get the ghost text, http://cookbooks.adobe.com/post_Adding_Ghost_Text_to_LiveCycle_Designer_form-18436.html, working on my form.  However, in my form some fields are enabled/disabled in which case I don’t want the ghost text.  I had thought I could call the prePrint/postPrint to clear and enable the null picture from my script object that disables/enables fields.  I sort of got it working using;

if (fieldNode.resolveNode("event__prePrint") !== null)
{
var contextSave = xfa.context;
xfa.context = fieldNode;
eval(fieldNode.event__prePrint.resolveNode("#script").value);
xfa.context = contextSave;
}

Then in the prePrint I need to change the code to (referenceing xfa.context instead of this);

xfa.context.format.picture.value = "";

But you are probably right, if I knew what I now know I would have used another script object.

Thanks

Dave