# Forms fields based on database content

**URL:** <https://forum.djangoproject.com/t/forms-fields-based-on-database-content/8317>\
**Category:** Using Django\
**Created:** [June 11, 2021, 6:15pm UTC](https://forum.djangoproject.com/t/forms-fields-based-on-database-content/8317 "2021-06-11T18:15:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [June 13, 2021, 5:44pm UTC](https://forum.djangoproject.com/t/forms-fields-based-on-database-content/8317/4 "2021-06-13T17:44:33Z")

</div>

What I _think_ you might be looking for is [Passing custom parameters to formset forms](https://docs.djangoproject.com/en/3.1/topics/forms/formsets/#passing-custom-parameters-to-formset-forms). In general, you’ll want to assign a different MetaGroup to each instance of the form, and mark that field as either read-only or disabled. (In this case, I would tend to suggest disabled.)

This topic was also discussed here: [Pass different parameters to each form in formset](https://forum.djangoproject.com/t/pass-different-parameters-to-each-form-in-formset/4040). (The author of the first comment also makes reference to: [https://datalowe.com/post/formsets-tutorial-1/.)](https://datalowe.com/post/formsets-tutorial-1/.))

---

_[View the full topic](https://forum.djangoproject.com/t/forms-fields-based-on-database-content/8317)._
