Change background image based on radiobutton values in a better way?
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?