AnsweredAssumed Answered

Change background image based on radiobutton values in a better way?

Question asked by cgildenhuys on Apr 29, 2012
Latest reply on Apr 30, 2012 by cgildenhuys

Title

Change background image based on radiobutton values in a better way?

Post

I've got a layout with a radiobutton value list and based on the radiobutton clicked I change the image(backgroundcolor) in another field on my layout. These images are in a different table with only two fields, name of the color and container with the jpg. The two tables are linked based on the imageName field and the radiobutton value field and it works fine.

My problem is that I don't want to name my radiobutton values the same as the imageName values for this to work. I would like to possibly use these images for other value lists too, the radiobuttons' values that display need to be named more precisely for the info I'm trying to collect whereas the imageNames need to stay "red", "blue", ect. I don't want my radiobutton to also say Red or Blue and so on.

Is it possible to use the radiobutton values that I want and then use a calculation to set that value to the imageName needed for the correct image to come up? If so what would be the steps?

Thanks

Outcomes