Avatar

Level 3

Hello,

I'm working on a form that has a table (example below) in which one of the cells contains a dropdown menu and once the user chooses a certain value from the list, the adjacent cell displays a number either 4, 10, or 12 (Calculated Read Only). All this is working fine. However, what I'd like to achieve is that I want to display an image in a third cell based on my calculated value (4, 10, 12) same image for 4 and 12. I was able to achieve this by adding the following code (see below) to the Drpdown field under "change* javaScript”. However, I want to be able to make this happen when the read only cell changes as opposed to the Drp down values which are too many....

var temp = xfa.event.newText

if (temp == " ") {

LabelSample.presence = "invisible"; }

else if (temp == "Item One") {

LabelSample.presence = "visible"; }

else if (temp == "Item Two") {

LabelSample.presence = "visible";}

else

{LabelSample.presence = "invisible";}

Header 1Header 2Header 3
DropDown Menu ItemsRead Only Value (4, 10, or 12)Display Image wrapped in subform Called "LabelSample"

Thank you for your help!!!!!