Hi @sukanya
In my case, I installed the tutor-contrib-enable-feature-flag
( pomegranited/tutor-contrib-enable-feature-flag: Demonstrates how to add a feature flag to Tutor) plugin
and added the following lines to the plugin.py
file:
hooks.Filters.ENV_PATCHES.add_item(
(
"mfe-lms-production-settings",
"""
ENABLE_DYNAMIC_REGISTRATION_FIELDS = "true"
MFE_CONFIG["ENABLE_DYNAMIC_REGISTRATION_FIELDS"] = "true"
REGISTRATION_EXTRA_FIELDS["gender"] = "required"
REGISTRATION_EXTRA_FIELDS["year_of_birth"] = "required"
REGISTRATION_EXTRA_FIELDS["city"] = "required"
REGISTRATION_EXTRA_FIELDS["state"] = "required"
REGISTRATION_EXTRA_FIELDS["country"] = "required"
REGISTRATION_EXTRA_FIELDS["level_of_education"] = "required"
"""
)
)
Next, you need to rebuild tutor-mfe
using the following command:
tutor images build mfe --no-cache