Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3652 Visualizações

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 ?


Avatar
Cancelar
Autor Melhor resposta

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

Avatar
Cancelar
Melhor resposta

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.

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
fev. 25
5980
1
dez. 24
1508
1
fev. 24
1659
1
nov. 22
16081
3
ago. 22
13145