unicef / iogt

BSD 2-Clause "Simplified" License
25 stars 36 forks source link

Refactor skip logic in questionnaires #529

Open geoo89 opened 3 years ago

geoo89 commented 3 years ago

Page numbers are sometimes wrong (e.g. when missing a required field and being redirected to the same page, or while skipping questions).

Obscure bug that we currently prevent by adding extra validation (non-trivial skip fields have to be marked as required): https://github.com/unicef/iogt/pull/505#issuecomment-910055219 This extra validation makes input type 'checkbox' basically useless for the purpose of validation.

ChrisMarsh82 commented 2 years ago

split up to be skip logic only see #866