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 !!
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 !!
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.
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|
1
5月 23
|
4614 | |||
|
2
5月 16
|
6660 | |||
|
0
9月 24
|
5734 | |||
|
1
9月 23
|
7362 | |||
|
1
4月 23
|
228 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.