Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5139 Lượt xem

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
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 16
6577
2
thg 5 25
10287
5
thg 12 21
12723
3
thg 11 20
9735
0
thg 6 17
3345