Re: dynamic choices based on another field input.

2017-10-22 Thread Derek
See:

http://django-autocomplete-light.readthedocs.io/en/master/tutorial.html#filtering-results-based-on-the-value-of-other-fields-in-the-form


On Friday, 20 October 2017 13:04:41 UTC+2, rajeev yadla wrote:
>
> hi have a form which have two fields. one field has a foreignkey from 
> model A(in image) base field. and another field is a drop down box where 
> the choices should be dynamic based on first field selection. the choices 
> should all the values of field Os from second model B associated with the 
> Base key value i have given in first field. 
> example from image. 
> field 1= 10
> field 2= (A,C) as these two values are associted with 10 in model B.
>
>
> 
>
> can someone help me here.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e3363444-83d8-46e1-aaf1-7cf31c657e94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


dynamic choices based on another field input.

2017-10-20 Thread rajeev yadla


hi have a form which have two fields. one field has a foreignkey from model 
A(in image) base field. and another field is a drop down box where the 
choices should be dynamic based on first field selection. the choices 
should all the values of field Os from second model B associated with the 
Base key value i have given in first field. 
example from image. 
field 1= 10
field 2= (A,C) as these two values are associted with 10 in model B.



can someone help me here.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5ff8c070-325a-4cf7-abe1-6fb59f985b40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.