跳至內容
選單
此問題已被標幟
1 回覆
11036 瀏覽次數

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
90972
3
9月 21
5090
1
9月 15
8939
4
4月 25
5252
3
7月 23
5704