Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
11028 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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!

Awatar
Odrzuć
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.

Powiązane posty Odpowiedzi Widoki Czynność
3
gru 23
90947
3
wrz 21
5075
1
wrz 15
8933
4
kwi 25
5204
3
lip 23
5690