Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
5154 Visninger

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
Kassér
Bedste svar

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
Kassér
Forfatter

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

Related Posts Besvarelser Visninger Aktivitet
1
jul. 16
6592
2
maj 25
10292
5
dec. 21
12734
3
nov. 20
9740
0
jun. 17
3360