コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5587 ビュー

Hello


how to hide required fields ?
i have checkbox when it true it hide required fields then when click on save cannot save because the  required is empty 

アバター
破棄
最善の回答

Hi MOH,

You can make a field invisible by giving invisible attribute. In the case of the the required field, you cannot save the record untill you enter data in that field.

You can try like this, make the field as required based on the value in the checkbox.

<field name='test_field' attrs="{'required':[('check_field', '=', True)]}"/>

Along with the above you can add the attribute to make the field invisible.

Thanks

アバター
破棄
関連投稿 返信 ビュー 活動
2
3月 23
2124
0
11月 17
5334
2
3月 15
4188
1
3月 15
6724
3
3月 15
28156