To add custom fields to the registration page, follow these steps.
Start the LMS and sign in to your instance of Open edX.
Use Python to create a Django form that contains the fields that you want to add to the page, and then create a Django model to store the information from the form.
For more information about how to create Django forms, see Django Forms on the Django website.
In the lms.env.json
file, add the app for your model to the ADDL_INSTALLED_APPS
array.
In the lms.env.json
file, set the REGISTRATION_EXTENSION_FORM
setting to the path of the Django form that you just created, as a dot- separated Python string.
For example, if your form is named “ExampleExtensionForm” and is located at “path/to/the_form.py”, the value of the setting is path.to.the_form.ExampleExtensionForm
.
Run database migrations.
Restart the LMS and verify that the new fields appear on your registration form.
{
... (existing settings) ...
"ADDL_INSTALLED_APPS": ["myproject.myapp"],
"REGISTRATION_EXTENSION_FORM": "myproject.myapp.custom_reg_form.RegExtensionForm"
}
--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/2a65f42e-9cd2-49c7-b9a1-d603a6ec322f%40googlegroups.com.
Hi Braden,Is it possible to do this cypress version? Looking forward to hearing from you.Thanks.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/9733e4fd-d386-411f-884f-e529fce1ce1f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/02031461-a147-4e4f-a02c-40801625bdd3%40googlegroups.com.