HowOftenCycle, HowOftenBus, HowOftenTrain are all Strings.
This works great, unless HowOftenBus or HowOftenTrain are null, in which case the default value of the drop down is being set to the value from the previous form element.
It works fine if HowOftenBus or HowOftenTrain are empty string instead of null.
For now I have a workaround in the view model, a bit like the following. But a proper fix would be good :-)
if (HowOftenBus == null) HowOftenBus = "";
if (HowOftenCycle == null) HowOftenCycle = "";
if (HowOftenTrain == null) HowOftenTrain = "";
I have a block of code that has the same options for multiple questions, a bit like like this:
HowOftenCycle, HowOftenBus, HowOftenTrain are all Strings.
This works great, unless HowOftenBus or HowOftenTrain are null, in which case the default value of the drop down is being set to the value from the previous form element.
It works fine if HowOftenBus or HowOftenTrain are empty string instead of null.
For now I have a workaround in the view model, a bit like the following. But a proper fix would be good :-)
Thanks
Joe