Expand my Community achievements bar.

xfa-object and alerts

Avatar

Former Community Member

Hello,

i want to check some fields before the user sets its signature.

I've alreay written some code, but how ever there is a big unknown difference:

(string is the name of the field)

This codesnippet returns the correct value of the obj.

obj = xfa.form.topmostSubform.Page1.resolveNode(string);
app.alert({cMsg:obj});   
value = obj.rawValue;
app.alert({cMsg:value});

This codesnippet returns null.

obj = xfa.form.topmostSubform.Page1.resolveNode(string);

//app.alert({cMsg:obj});

value = obj.rawValue;
app.alert({cMsg:value});

Can anyone tell me where is the problem and how to solve it?

Probably i have to cast the object? but how can i do it?

1 Reply

Avatar

Former Community Member

As this code is not specific to Digital Signatures, you may want to post it in the Designer ES forum as this is where scripting questions are typically posed.

Regards

Steve