A way to change an Options Menu option from an event?

Say, for example, I wanted to have an event in-game, and I wanted that event to offer the player a choice of whether they wanted "Always Dash" or "Command Remember" on/off. How would I do this?

I assume there's a way to use a Javascript call to enable/disable an Options Menu option in this way?
Hi!
Yes, there is. You can use this script call:

ConfigManager.alwaysDash = true/false
ConfigManager.save()
Hi!
Yes, there is. You can use this script call:

ConfigManager.alwaysDash = true/false
ConfigManager.save()
Thanks a bunch! This was a huge help.

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-change-an-options-menu-option-from-an-event.130771/