SetUserFieldSettings

This function set visible settings(internal, external, groups, system) for user field. User field should have settings „for all users”.

Syntax

SetUserFieldSettings("FieldTitle", "InternalUsers", "ExternalUsers", "Groups", "SystemUsers");

Function arguments

  • FieldTitle – (String) The title of user field
  • InternalUsers – (Boolean) Enable internal users
  • ExternalUsers – (Boolean) Enable external users
  • Groups – (Boolean) Enable groups
  • SystemUsers – (Boolean) Enable system users

Return value

This function returns Boolean.
This function return false if user field has settings not „for all users”. Otherwise function return true.

Examples

Example 1:
Set only groups for field „Customer”

SetUserFieldSettings("Customer", false, false, true, false);
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.