Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
4474 Ansichten

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!

Avatar
Verwerfen
Beste Antwort

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">


Avatar
Verwerfen

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.

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Dez. 21
9891
2
Okt. 20
12658
1
Mai 23
4117
2
Aug. 20
3066
0
Nov. 15
4885