Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
11061 Ansichten

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.

Avatar
Verwerfen
Beste Antwort

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!

Avatar
Verwerfen
Autor

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.

Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Dez. 23
91034
3
Sept. 21
5112
1
Sept. 15
8953
4
Apr. 25
5330
3
Juli 23
5736