Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5127 Widoki

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
Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 16
6572
2
maj 25
10284
5
gru 21
12720
3
lis 20
9734
0
cze 17
3332