Re: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-22 Thread chaitanya orakala
Hello Djangians, I have a select drop-down list in a form. whenever I will select an option, it should pop-up a list containing information about the package. Please suggest how to achieve this. Thank You On Thu, May 21, 2020 at 2:59 AM chaitanya orakala wrote: > wow... thanks Devansh. It was

Re: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-21 Thread chaitanya orakala
wow... thanks Devansh. It was simple and easy to understand and no extra hassle to add new language into the code. On Thu, May 21, 2020 at 2:04 AM Devansh Chaubey wrote: > Hey Chaitanya , > You can do something like this > In the models.py > CHOICES=[('Basic','Basic'), ('Standard','Standard'), (

Re: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-20 Thread Devansh Chaubey
Hey Chaitanya , You can do something like this In the models.py CHOICES=[('Basic','Basic'), ('Standard','Standard'), ('Advanced','Advanced')] class Modelname(models.Model): pack=models.CharField(max_length=12,choices=CHOICES,blank=True) *Forms.py class Formname(forms.ModelForm): class *meta: * mode

Re: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-20 Thread chaitanya orakala
Thank you for your response. I see some javascript inside the form. I am not fully aware of it. is there any template which I can use in forms?? On Thu, May 21, 2020 at 1:22 AM Vishesh Mangla wrote: > #template > > > Volvo > Saab > Opel > Audi > > > > > > > > > > > > > > > > > > >

RE: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

2020-05-20 Thread Vishesh Mangla
#template