Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
11214 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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!

Imagine profil
Abandonează
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.

Related Posts Răspunsuri Vizualizări Activitate
3
dec. 23
91529
3
sept. 21
5416
1
sept. 15
9102
4
aug. 25
6138
3
iul. 23
5952