Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5147 มุมมอง

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
6582
2
พ.ค. 25
10289
5
ธ.ค. 21
12724
3
พ.ย. 20
9736
0
มิ.ย. 17
3353