How to derive a value from another TextInput field correctly.
Firstly, if there is a specific piece of documentation for doing this, please point me there as I struggled to find it but otherwise, here is what I am trying to do.
I have the following form (attached image) and in the highlight box you will see 2 prices,
I have looked at both the
any advice or guidance appreciated as always!
I have the following form (attached image) and in the highlight box you will see 2 prices,
gbp and eur - What I want to be able to do is use a multiplier that is stored in the database to set the value of
euronce i have entered a price forgbp- I still want to be able to change this manually so it does not have to be disabled or anything but it would be nice if it worked in reverse. I.e, changing euro, changes the price of
gbp
- I still want to be able to change this manually so it does not have to be disabled or anything but it would be nice if it worked in reverse. I.e, changing euro, changes the price of
TextInput components:I have looked at both the
->default() method and ->afterStateUpdated() method but failed to get either working in a way that I would like to (probably a me issue)any advice or guidance appreciated as always!
