Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3630 Lượt xem

Hi i have two models (item type and item with many to one relation) when i select item type as book from dropdown i need to display two fields, when i select CD from dropdown i need to display other two field. is there any way ?


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

thanks for the reply can you please tell me how to make a filed invisible from the python code ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi, In the above scenario you can set Onchange Method for item type field and in Onchange Method you need to set the invisibility attribute to the required fields on the selected item i.e.Book or CD.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 25
5973
1
thg 12 24
1497
1
thg 2 24
1641
1
thg 11 22
16072
3
thg 8 22
13126