Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5309 Zobrazení

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šit
Nejlepší odpověď

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šit
Autor

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

Related Posts Odpovědi Zobrazení Aktivita
1
čvc 16
6946
2
kvě 25
10717
5
pro 21
13231
3
lis 20
10217
0
čvn 17
3606