Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
11045 Переглядів

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.

Related Posts Відповіді Переглядів Дія
3
груд. 23
90985
3
вер. 21
5095
1
вер. 15
8942
4
квіт. 25
5272
3
лип. 23
5717