Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4440 มุมมอง

Hi

I have the following requirement: Let's say I have a group of users 'A' and a field 'foo', if a user belongs to group 'A' then 'foo' should be equal to zero, any other user not belonging to group 'A' should see the real 'foo' value.


Does anyone know how to achieve this?


Thanks in advance!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Rather than change the value must display or not display depending on the group

Like this

field name="foo" attrs="{'invisible':[('user','=',"A")]}" name="foo">


อวตาร
ละทิ้ง

So I guess the value 'foo' is involved in a calculation. We must therefore change the calculation according to the group. please, be more specific.

Related Posts ตอบกลับ มุมมอง กิจกรรม
Make Field Read Only for specific Group แก้ไขแล้ว
1
ธ.ค. 21
9859
2
ต.ค. 20
12640
1
พ.ค. 23
4086
2
ส.ค. 20
3040
0
พ.ย. 15
4863