Xpath Constrian on Drop down Widget

I am trying to put a Xpath constrain [System.user='[%CurrentUser%]'] on Drop down widget to restrict  the enumeration list according to Current user but it is not accepting the Xpath contrain.
1 answers

You cant constrain an enumeration with Xpath directly, there are other ways to restrict users of seeing specific enum values. See https://forum.mendix.com/link/questions/31 for some ideas.

If you are not trying to constrain an enumartion directly but through a referenced value that is linked to a user, you could use [YourModule.YourAssociationtoUser = '[%CurrentUser%]']