Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
11176 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
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 Odpovědi Zobrazení Aktivita
3
pro 23
91442
3
zář 21
5380
1
zář 15
9087
4
srp 25
5994
3
čvc 23
5929