on 02-20-2014 9:22 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.