dynamic choices based on another field input.

2,327 views
Skip to first unread message

rajeev yadla

unread,
Oct 20, 2017, 7:04:41 AM10/20/17
to Django users

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.

Derek

unread,
Oct 22, 2017, 7:03:14 AM10/22/17
to Django users
Reply all
Reply to author
Forward
0 new messages