تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5282 أدوات العرض

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 16
6932
2
مايو 25
10701
5
ديسمبر 21
13216
3
نوفمبر 20
10193
0
يونيو 17
3580