cancel
Showing results for 
Search instead for 
Did you mean: 

User action custom EL expression syntax

klebervz_
Confirmed Champ
Confirmed Champ

Hi

I created a new button in contextual Tools, I can only show the button in the following condition:

User logged equals Responsible or User logged equals User Created

Follow my sixtaxe in Custom EL expression

#{currentDocument == currentDocument.getPropertyValue('dc:created')} ||

{currentDocument == currentDocument.getPropertyValue('mission:mission_responsible')}

did not work!

What is correct syntax?

2 REPLIES 2

nchaillot_
Champ on-the-rise
Champ on-the-rise

Try

'#{currentUser.getProperty("user:id") == currentDocument.getPropertyValue('dc:created') || currentUser.getProperty("user:id") == currentDocument.getPropertyValue('mission:mission_responsible')}'

Hi, Nchaillot