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

Hi,

How to make a field readonly based on some condition? For instance i want to make fields readonly on form load based on some values from another table.

アバター
破棄
最善の回答

Hello Binyam Assefa ,

 To make readonly field based on condition you can use "attrs" attribute in field tag as follows :

 <field name="field_name" attrs="{'readonly' : [domain]}"/>

 Hope this will work for you.

Thanks!

アバター
破棄
著作者

Thanks Jainesh Shah,

So i have to declare fields that contains some calculated values from another domains to use it here in the current view.

関連投稿 返信 ビュー 活動
3
12月 23
90989
3
9月 21
5096
1
9月 15
8944
4
4月 25
5274
3
7月 23
5718