chairemobilite / evolution

Online survey platform for travel survey
MIT License
4 stars 9 forks source link

admin: Handle widgets that get hidden when editing interview #701

Open tahini opened 2 months ago

tahini commented 2 months ago

Some conditionals in the survey make questions disappear from the interface (for example, many questions depend on a localization, but this is lost for example if replacing the point, querying and having multiple choices or none and those questions disappear).

While we want the survey to keep its current behavior, for example, if an answer is changed and some questions are hidden, we do want their answer re-initialized as expected.

But if a question is back to being visible (like once the licalization is fixed and they questions are shown again), then they should be answered with their original content.

For this, we absolutely want to avoid custom conditional code with a is_admin conditional!!!!!