How about this case:
There are three different cases that could be true, 4 cylinders, 6 cylinders and 8 cylinders. I have created the 4 (Fourcyl), 6 (Sixcyl) and 8 (Eightcyl) as buttons, and created three circle objects as cyl4, cyl6 and cyl8. I want it so that when 4 is clicked it displays the circle object cyl4 and makes the others hidden, unless cyl4 is already visible then it will just make all three objects hidden. So far I have this code on each button click, modified for which objects should be set to visible on each one:
topmostSubform.Page1.Span[41].Fourcyl::click - (JavaScript, client)
if (cylinder == 4){
xfa.form.topmostSubform.Page1.cyl4.presence="hidden"
xfa.form.topmostSubform.Page1.cyl6.presence="hidden"
xfa.form.topmostSubform.Page1.cyl8.presence="hidden"
cylinder.value = 0
}
else{
xfa.form.topmostSubform.Page1.cyl4.presence="visible"
xfa.form.topmostSubform.Page1.cyl6.presence="hidden"
xfa.form.topmostSubform.Page1.cyl8.presence="hidden"
cylinder.value = 4
}
Where cylinder is a control variable.
It makes cyl4 object visible when I click it the first time, but doesn't make it hidden when I click again. It also does not make the cyl6 or cyl8 circle objects visible when they are clicked. Any help would be appreciated.
Thanks
Views
Replies
Total Likes
Hi,
To make the hide and show collectively work together i use another reference object such as Radio button list as an example. I have created a sample for you which fulfils your requirement, please download for the link below.
https://acrobat.com/#d=GS3JK7z*DngLmXTNaX0BCg
And i hope this helps you out and let me know in case of any questions.
thanks,
Rajesh