콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5145 화면

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
7월 16
6578
2
5월 25
10289
5
12월 21
12723
3
11월 20
9735
0
6월 17
3349