"event.target.hostContainer is undefined" with signature fields

Avatar

Avatar
Validate 1
Level 2
ulibaehr
Level 2

Likes

2 likes

Total Posts

71 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Validate 1
Level 2
ulibaehr
Level 2

Likes

2 likes

Total Posts

71 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 1
Affirm 3
Affirm 1
View profile
ulibaehr
Level 2

31-05-2016

I got LC-Designer ES4 Vers. 11. In Acrobat XI (and possibly all other viewers) I have this problem:

Whenever I access a subform containing a signature field  (for example like this):

var oBlockSignatureEKB = xfa.resolveNode("Exportcontrol.blockWithSignatures.blockSignatureEKB");

console.println("setVisibilityOfSignatureEKB: [" + oBlockSignatureEKB.name + "]");

then I get in JavaScript-Debugger this error message

event.target.hostContainer is undefined

126:1

TypeError: event.target.hostContainer is undefined

126:1

Apparently the code quits working beyond this point.

Why is this?

How can I prevent it or get around this error?

Accessing subforms without a signature field I do not have this kind of problem at all.

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Boost 5
Level 4
George_Johnson
Level 4

Likes

21 likes

Total Posts

234 posts

Correct reply

27 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 4
George_Johnson
Level 4

Likes

21 likes

Total Posts

234 posts

Correct reply

27 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
George_Johnson
Level 4

27-06-2016

Where is the code that references the hostContainer property placed and can you post the code?

Avatar

Avatar
Validate 1
Level 2
ulibaehr
Level 2

Likes

2 likes

Total Posts

71 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Validate 1
Level 2
ulibaehr
Level 2

Likes

2 likes

Total Posts

71 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 1
Affirm 3
Affirm 1
View profile
ulibaehr
Level 2

26-06-2016

I am afraid that won't help.

I do not plan to pop up message boxes.

The code I wrote in my question is actually stripped down to the minimum to visualize the problem:

Accessing a subform containing a signature field throws an error message.

That might be an issue of LiveCycle - or has some other reason. I was hoping someone else has come across this behaviour as well and can explain it. The best thing would be of course if someone knew a way of accessing such a subform without provoking an error message.

Avatar

Avatar
Validate 1
Level 2
Karwan_Mawlood
Level 2

Likes

7 likes

Total Posts

43 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
Karwan_Mawlood
Level 2

Likes

7 likes

Total Posts

43 posts

Correct reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
Karwan_Mawlood
Level 2

02-06-2016

why complicating things just use image filed better , user can insert image as eletrocnic signature and you can set codes as below to pop up messages if it's null :

if (this.rawValue == null || this.rawValue == "")

{

app.alert("Please insert your signature first");

}