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);