Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5264 Представления

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
Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Автор

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

Related Posts Ответы Просмотры Активность
1
июл. 16
6930
2
мая 25
10700
5
дек. 21
13206
3
нояб. 20
10190
0
июн. 17
3579