Editing register-form page

how can I edit register-form page with new custom fields? ex. if I want to show/hide some form field depending on value in new custom field ?

Use the search feature in this forum, there are some posts already on this.


self.fields[‘your_custom_field’].required=True ### Shows, for hide(False)

could you explain it in more detail?

I mean in html page.

Hi @kottab ,
If you done all correctly like in this post, it should work.

You can find detailed information’s about Django forms on internet, because it’s big issue, in my opinion.
But here some example forms.py

If you done other files correctly, you don’t need to change HTML files, for this processes.

God Luck.

1 Like

thank you very much @qali.