Re: Modelform and Ajax (Select a valid choice..... Error)

2013-02-12 Thread vijay shanker
hey siddhartha i have similar problem, i created dynamic option with ajax calls and getting the same error "select a valid choice. xyz is not available choices , how did you solved it?" On Tuesday, December 11, 2012 5:09:48 PM UTC+5:30, siddharth56660 wrote: > > Hi, > > I am facing problem in h

Re: Modelform and Ajax (Select a valid choice..... Error)

2012-12-14 Thread Chris Cogdon
Good... but we'd all appreciate knowing what was wrong, so we can guide others :) On Thursday, December 13, 2012 9:05:44 PM UTC-8, siddharth56660 wrote: > > Hey Chris > > Thanks for the replybut i figured it out what was wrong. > :) > -Siddharth > On Thu, Dec 13, 2012 at 6:09 PM, Chris Co

Re: Modelform and Ajax (Select a valid choice..... Error)

2012-12-13 Thread siddharth ghumre
Hey Chris Thanks for the replybut i figured it out what was wrong. :) -Siddharth On Thu, Dec 13, 2012 at 6:09 PM, Chris Cogdon wrote: > How are you populating the choices in the ChoiceField? Remember, you need to > do this on BOTH the POST AND the non-POST versions of creating the form. > > B

Re: Modelform and Ajax (Select a valid choice..... Error)

2012-12-13 Thread Chris Cogdon
How are you populating the choices in the ChoiceField? Remember, you need to do this on BOTH the POST AND the non-POST versions of creating the form. But ChoiceField is a Form field, not a Model field... so its not perfectly clear what you're asking. On Tuesday, December 11, 2012 3:39:48 AM UT

Modelform and Ajax (Select a valid choice..... Error)

2012-12-11 Thread siddharth ghumre
Hi, I am facing problem in handling modelform and ajax together. The situation is:- I am using modelform to get display the form as ul in the template. I have 3 ChoiceFields (country, state,city). On select of a country from the dropdown, the valid states dropdown gets populated and on select of a