Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
5135 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
lug 16
6574
2
mag 25
10287
5
dic 21
12722
3
nov 20
9735
0
giu 17
3343