Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4455 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer

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.

Gerelateerde posts Antwoorden Weergaven Activiteit
1
dec. 21
9872
2
okt. 20
12644
1
mei 23
4094
2
aug. 20
3048
0
nov. 15
4870