cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive Form

Former Member
0 Kudos

Hi All,

I have a image ui inside the interactive form, I want to control the visibility of the image depending on the user who login.

For User A, the image should be invisible

For User B, the image should be visible.

i am using the code like this:-

show - initialize

Language - Java script

RunAt:- Client

On image

if(xfa.form.Main_node.userid.value=="A")

{

xfa.form.Main_node.Subform3.ImageField1.presence="invisible";

}

if(xfa.form.Main_node.userid.value=="B")

{

xfa.form.Main_node.Subform3.ImageField1.presence="visible";

}

But there is no change happening, the image is visible in both the times.

i even used

if(xfa.form.Main_node.userid.value="A") and if(xfa.form.Main_node.userid=="A")

How can i control the visibility of UI Elements in Interactive Forms. Can anyone please help me out in this? Is there any PDF related to this?

Regards,

Divya

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I resolved my myself...