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

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
ديسمبر 23
90984
3
سبتمبر 21
5092
1
سبتمبر 15
8940
4
أبريل 25
5269
3
يوليو 23
5716