I would like to know how to change the value of a "Text" component according to what is selected in an input Dropdown.
In the table I'm using, every month has its generated value and its target value. What I need is that when I use the Dropdown and select for example the month of January, it brings me in a component "Text" the target value ("80%") and in another component "Text" it brings me the value produced that month ("90%"). I would also like that when the value produced was below that month's target, the text would be red, and when it was above, the text would be green. As in the following examples:
These are the amounts I should receive when selecting the month of January from the dropdown above. (Note that as the "Value" was above the "Target" it turned green, if it was below it should have turned red.)
Note that in the table each month has a specific target value.