Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3649 มุมมอง

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 ?


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 25
5976
1
ธ.ค. 24
1502
1
ก.พ. 24
1652
1
พ.ย. 22
16074
3
ส.ค. 22
13126