Discourse Authentication Validations

Hello @isaac. Thank you once again for this amazing plugin - it really has opened up so many discourse opportunities for me.

I ran into a little bug - I noticed that question responses are saved, even if a question is hidden. This has led to a few unintended situations where users are submitting response that shouldn’t really be possible (hence why we wanted to hide the questions in the first place). This behavior also causes another situation where when a question is double nested, it still appears even though the parent response has been deselected (because it still thinks the triggering answer is selected). I know this description is a big vague, so here is a gif highlighting this behavior:

auth null bug

I think my desired fix would be to reset the responses to the null value once they are no longer visible. This could also be “opt-in” behavior that is configurable by the person setting up the form - I could see different philosophies existing on whether responses should persist when going down these trees.

Would you be able to implement this? :pray:

4 Likes