Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3603 Представления

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
5972
1
дек. 24
1495
1
февр. 24
1634
1
нояб. 22
16071
3
авг. 22
13125