Yanfly Option Core Default Code not working

I'm trying to set an option in the options menu by default to ON.
As I understand correct, I need to do this via the Default Config Code?

The help file says:

Default Config Code:
- When creating new options, this determines the default value of the option. For most options, this starts in an OFF position, which is usually represented by a 'false' boolean.

The default code:
ConfigManager[symbol] = false;

So I picked the always dash option for testing purpose and did the following inside the Default Config Code:

ConfigManager[symbol] = true;

But it is not working. If I start the game, "always dash" is OFF.

Why? What am I doing wrong?
Did you already have a config file when testing? (the one in your project folder/save). If you did then I doubt that plugin setting overwrites what is already saved there. I've never used yanfly's option core so I can't be sure how it works.
Thank you for your anwer!

Of course I deleted the config file before testing the plugin. I want that new players have the option already enabled by default. But it is disabled, even if I set ConfigManager[symbol] to true.

Of course, while playtesting, if I set the option to ON and restart the game, the config file saves the change and I get into the option screen with dashing to ON.

But this is not what I want. I want it ON by default. And even without a config file, this isn't working.
You're right, this doesn't work.

The plugin parameter does set the default to true. But it appears that the code in rpg_managers overwrites it back to false. Try replacing the code in 'alwaysDash's' "Load Config Code" plugin parameter to see if it helps:

Code:
var value = config[name];
if (value !== undefined) {
   ConfigManager[name] = value;
} else {
   ConfigManager[name] = true;
}
Yes, this works!
Thank you very much 🙂
Awesome this fix worked for me too. Was wondering what I was doing wrong, took too long!
You're right, this doesn't work.

The plugin parameter does set the default to true. But it appears that the code in rpg_managers overwrites it back to false. Try replacing the code in 'alwaysDash's' "Load Config Code" plugin parameter to see if it helps:

Code:
var value = config[name];
if (value !== undefined) {
   ConfigManager[name] = value;
} else {
   ConfigManager[name] = true;
}

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-option-core-default-code-not-working.106969/