تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3645 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
فبراير 25
5975
1
ديسمبر 24
1501
1
فبراير 24
1649
1
نوفمبر 22
16073
3
أغسطس 22
13126