Hi there,
I have a problem regarding update of the image path of my html.Img element. The logic of my app is as the follows:
User needs to give some inputs.
After fulfill the form, user has to click a button.
After button click, a image will be generated and shown in a tab.
In the tab which contains the Img element, I’ve created a global variable which is the path of the generated image. And the initial value of it is empty. After step 2 (button click), this variable is assigned to a value. However, I don’t know why does the value of this variable is not updated.
As you can see here, there is a callback of button click and in which the first output updates the content of tab, the second output should update the H1 value. However, I’ve got the following error which I don’t have any idea:
When posting code, you can use the preformatted text button </> and paste the code there. It will help us know your formatting and copy and paste it into our own troubleshooting mechanisms.
@jinnyzor@AIMPED Thank you for your help, I’ve solved my problem already. By modifying the callback of the button, the src of html.Img can be dynamically modifed: