Hi all,
I want to get an Integer value from the user through a forms.Form. I have three unique requirements for it.
- The corresponding Widget is Select or SelectMultiple (either one)
- The 'choices' field is dynamic, not static or hard-coded -they are adjusted upon each display of the Form based on program logic.
- I want the max_value and min_value of IntegerField to also be dynamic - also adjusted based on program logic.
What I have thus far is this:
class deleteUserForm(forms.Form):
delUserId = forms.CharField(label='delUserId', widget=forms.Select)
How would this work?
Thanks
- Farhan