Hello All ,
I have a form where, there are several images which are hidden and excluded from the layout. There are several checkboxes are present.If some conditions are met (a particular checkbox is checked) then it should display the image. I have a conception that Images are not associated with scripts.
Is it wrong ? any help regarding this would be appreciated.
Thanks.
Bibhu.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Bibhu,
No, it is fully available in FormCalc, you just need to change the syntax.
In FormCalc, it would look like:
if ($ == "1") then
image1.presence = "visible"
else
image1.presence = "hidden"
endif
Hope that helps,
Niall
Views
Replies
Total Likes
Hi Bibhu,
The presence property of an image object and an imageField object can be set quite easily.
For example the click event of the checkbox could have the following JavaScript:
if (this.rawValue == "1")
{
image1.presence = "visible";
}
else
{
image1.presence = "hidden";
}
If there are other criteria, you would just extend the test conditions.
Hope that helps,
Niall
Views
Replies
Total Likes
Hello Niall,
Thanks for the help. But I can do this in JavaScript, When I use FormCalc then it throws error. I am just confused. Is it only applicable in JavaScript and not in FormCalc ?
Thanks.
Bibhu.
Views
Replies
Total Likes
Hi Bibhu,
No, it is fully available in FormCalc, you just need to change the syntax.
In FormCalc, it would look like:
if ($ == "1") then
image1.presence = "visible"
else
image1.presence = "hidden"
endif
Hope that helps,
Niall
Views
Replies
Total Likes
Hello Niall,
Thanks. It worked. But what I feel JavaScript is user to implement than FormCalc. Sometimes I think , Why I have not blessed with the wit of Niall .
Thanks.
Bibhu.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies