cancel
Showing results for 
Search instead for 
Did you mean: 

Writing Java script for Dynamic image Fields in Adobe Forms

Former Member
0 Kudos

Hi experts,

In my requirement I have to write java script for Dynamic image fields and my condition is Image has to be changed dynamically

depends upon the total net values.

Please suggest me how to read a net value using conditions...

thanks in advance

bala

Accepted Solutions (0)

Answers (3)

Answers (3)

nsikka
Active Participant
0 Kudos

Hi ,

Refer to my blog point-1

Thanks,

Nitin

Former Member
0 Kudos

Hi bala,

Adding some extra logic to solution given by:

if (this.rawValue == 1000)

{

xfa.resolveNode("ImageField1").presence = "visible";

}

else if (this.rawValue > 1000)

{

xfa.resolveNode("ImageField2").presence = "visible";

}

else if (this.rawValue < 1000)

{

xfa.resolveNode("ImageField3").presence = "visible";

}

I think this will be help full for you.

Cheers,

Mohammed Quddus

Former Member
0 Kudos

Hi Bala,

I am giving one example for your scenario and based on that write the java script code.

Suppose i want to display 3 types of images and net value is 1000.

Drag and drop 3 image fields with bind with your images. Place them in required place and make those as invisible.

Write this below code in INITIALIZATION event of that net value field then you will get different images based on net value.

if (this.rawValue == 1000)

{

ImageField1.presence = "visible";

}

else if (this.rawValue > 1000)

{

ImageField2.presence = "visible";

}

else if (this.rawValue < 1000)

{

ImageField3.presence = "visible";

}

if it is already exists images in form then map the image fields to above java script code.

Former Member
0 Kudos

hi sree,

Its not working...

I have my images in master page