Changes

Visibility Condition

482 bytes removed, 18:52, 13 August 2014
no edit summary
* To make a Contact field visible only to the contact and to System Administrators (''[[roleid]]'' 12345):
@me.userid@=@userid@ or instr("OR @me.rolelistinRole(System Administrator)@",",12345,")>0
* To make a field visible to a role (''[[inRole]]'' Reviewer):
@me.inRole(Reviewer)@
 
* To hide a field from those in the role ''Reviewer''
!@me.inRole(Reviewer)@
* To make the field visible if the Template or Type is named '''Sample''' or '''Example'''
"@type@"="Sample" OR "@type@"="Example"
 
 
* To make the field visible for a user with [[roleid]] 9999
instr("@me.rolelist@,",",9999,")>0
:''instr checks to see of the 2nd term (,9999,) can be found within the first term (@me.rolelist@) and returns the numeric character position at which it is found. It returns a value of -1 if the search term is not found.
 
 
*To make the field hidden for a user with roleid 9999
instr("@me.rolelist@",",9999,")<0
:''In this case ''instr'' will return false (-1) if the role is not found that will only display the field for users that don't have [[roleid]] 9999
8,849
edits