Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elements toggled on/off don't persist after page reload/switching between pages #729

Open
taraw28 opened this issue Jun 4, 2024 · 1 comment
Labels
bug Something isn't working Questionnaire

Comments

@taraw28
Copy link

taraw28 commented Jun 4, 2024

If you use the toggle_element function to toggle an element on/off based on a checkbox or radio button, if you refresh the page or switch between pages, the toggling element gets reset to hidden. If it's a checkbox being used, then the checkbox toggling functionality gets inverted. The sentential negation and adnominal possession subpages have extra functions that run on load to correctly display the toggleable elements. This seems like something that should happen for every page by default though. This seems to be the same issue that's causing #725.

I've attached a video that showcases the issue:

video.webm
@taraw28 taraw28 added bug Something isn't working Questionnaire labels Jun 4, 2024
@taraw28
Copy link
Author

taraw28 commented Jun 4, 2024

It looks like a function was created to handle this in web/matrix.js called display_form_choice, but it's only implemented for radio buttons (set_form_feature function) and neither of these functions are actually used anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Questionnaire
Projects
None yet
Development

No branches or pull requests

1 participant