I have a form that is using ->reactive() with ->options() where the options are set based on the value (Get $get['otherfield']) in another field. Basically there are three enjoined fields, where the prior field can potentially narrow the options in the latter fields.
I am changing the options simply to make it easier to find the values in the second and third fields. It behaves similar to a Country->State->City type list, where initially the 'State' and 'City' fields include an exhaustive list, but when Country is selected, only states and cities in that country will be in each field and so on. (in my case they are Continent->Zone->Instance - it's a tool for Warcraft 'item needs')
The problem occurs when the options list 'changes' when a value is set for one of the dependent fields. Even if the value for the dependent field exists in the reduced list of options, the set value disappears. This is a problem especially because the setting of the Continent triggers a change in the 'Zone' options, when loading an existing record, Continent will be set but Zone and Instance will not be set.
How can I preserve the value set and then set the dependent fields if and when the option still exists in the reduced select list?