ellykits / neat-form

Build form on Android using JSON schema; also includes view validation and skip logic.
Apache License 2.0
67 stars 28 forks source link

Skip logic not working for Spinners #114

Open ellykits opened 3 years ago

ellykits commented 3 years ago

Describe the bug Skip logic is not working for Spinners after MLS implementation

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Sample form UI'
  2. Select any option from any spinner that is used in the rules file
  3. See error - skip logic not working

Expected behavior Skip logic should work for spinners

Additional context The new Multi Language Support allows the forms to be rendered in different languages depending on the device language. The spinner widget saves the options texts instead of the key. To fix this we need to update what data is saved for spinners i.e use the keys instead of the values. The keys are used in the new MLS support to pick the correct translated string from the Java Properties file.