I have uploaded three images to my Power App (content>media).
ImageA
ImageB
ImageC
I have added three buttons to a new screen:
Button 1-A
Button 2-B
Button 3-C
I have added an image control (MyImage) under the buttons.
I want to click on the button and make the image change in the image control.
So, what I did is created a context value called "SImage" and I'm using it like this:
Button 1-A OnSelect = UpdateContext( { SImage: "ImageA" } )
Button 2-B OnSelect = UpdateContext( { SImage: "ImageB" } )
Button 3-C OnSelect = UpdateContext( { SImage: "ImageC" } )
Finally, I added a Textbox Control (IName).
I have set the textbox Name default value to SImage
I have set MyImage Image setting to IName.Text
(because in real life I need this to work even if the user changes screens)
When I click on the button the Textbox contents changes as expected, but the image does not show up at all. Can anyone help me out please?