# Custom registration form based on subdomain

**URL:** <https://discuss.openedx.org/t/custom-registration-form-based-on-subdomain/4478>\
**Category:** Development\
**Tags:** how-to\
**Created:** [March 9, 2021, 6:50pm UTC](https://discuss.openedx.org/t/custom-registration-form-based-on-subdomain/4478 "2021-03-09T18:50:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![muneera\_salah](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/muneera_salah/32/2220_2.png) [@muneera\_salah](https://discuss.openedx.org/u/muneera_salah)\
**Post date:** [March 9, 2021, 6:50pm UTC](https://discuss.openedx.org/t/custom-registration-form-based-on-subdomain/4478/1 "2021-03-09T18:50:41Z")

</div>

Hi all,  
I need to show custom fields on the registration form based on the subdomain.

I finished coding models for every subdomain and know-how to get to on the registration form.  
but now how I can calls fields based on a subdomain?  
even “REGISTRATION\_EXTENSION\_FORM” on lms.env.json just accept one attr?  
do I need to make any customization on /edx/app/edxapp/edx-platform/common/djangoapps/student/forms.py on this function get\_registration\_extension\_form?

open-edx- release = hawthorn

appreciate your help
