Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5148 Visualizações

As my question said, I would like to know if there is a better or an "automatic" way to do this kind of behavior.


Actually I do this in my code :

# When the field has been hidden for some reason
my_visible_field = default_value
Avatar
Cancelar
Melhor resposta

hello,

I hope you are hiding your field according to value from another field(say field_2) in your from.

Then you can give onchange function to your field_2 to set value for your first field

Avatar
Cancelar
Autor

I exactly do that, but I would like to know if there is another way to do that.

Publicações relacionadas Respostas Visualizações Atividade
1
jul. 16
6584
2
mai. 25
10289
5
dez. 21
12725
3
nov. 20
9736
0
jun. 17
3355