Skip to Content
Menu
This question has been flagged
1 Odpoveď
5133 Zobrazenia

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
Zrušiť
Best Answer

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
Zrušiť
Autor

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

Related Posts Replies Zobrazenia Aktivita
1
júl 16
6573
2
máj 25
10287
5
dec 21
12721
3
nov 20
9735
0
jún 17
3338