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
8272 Zobrazení

Hi Guys

I want to make the whole form view readonly when the value of state = "waiting"


How can I do this ? I tried to use fields_view_get method but I don't know how to use it in my case.


Thanks in advance !!

Avatar
Zrušit
Nejlepší odpověď

I dont know if you can make the whole form view readonly
you can use this to make any field readonly in a form view

<field name="your_field" attrs="{'readonly':[('state ', '!=', 'waiting')]}" />

Use this in every field.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
kvě 23
2854
2
kvě 16
5003
0
zář 24
3129
1
zář 23
5725
1
dub 23
227