Get and use plugin config inside forms/data.txt.twig?

When I have a process like

    - save:
        filename: feedback.txt
        body: "{% include 'forms/data.txt.twig' %}"
        operation: add

in a form: is it possible to retrieve and use the settings of a specific plugin inside forms/data.txt.twig? How?

@pikim, What have you tried sofar?

E.g. {% set feature_enabled = %} in the first line of the twig and then use feature_enabled inside the script.

@pikim, And then what happened?

Regardless of whether the boolean is true or false, feature_enabled is always null.

@pikim, See Template 'data.html.twig' does not have access context variables · Issue #569 · getgrav/grav-plugin-form · GitHub

Thanks! That solved the issue. I’m using {% set feature_enabled = %} inside the macro now.